diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-01-08 15:56:01 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2026-01-17 16:58:45 -0600 |
| commit | dffc7a650d06e3f6cdce019ca79098cfd1e2ed15 (patch) | |
| tree | f8bd686e9d312c66a08e39cd9809e9444420c09b /Source/Core/DiscIO/MultithreadedCompressor.h | |
| parent | b556bd99d72d996364f423b663af5d02a9610c4f (diff) | |
Common: Replace Result with C++23's std::expected.
Diffstat (limited to 'Source/Core/DiscIO/MultithreadedCompressor.h')
| -rw-r--r-- | Source/Core/DiscIO/MultithreadedCompressor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/MultithreadedCompressor.h b/Source/Core/DiscIO/MultithreadedCompressor.h index 6019d5472b..5afaa1cca5 100644 --- a/Source/Core/DiscIO/MultithreadedCompressor.h +++ b/Source/Core/DiscIO/MultithreadedCompressor.h @@ -4,6 +4,7 @@ #pragma once #include <atomic> +#include <expected> #include <functional> #include <memory> #include <thread> @@ -11,7 +12,6 @@ #include "Common/Assert.h" #include "Common/Event.h" -#include "Common/Result.h" namespace DiscIO { @@ -25,7 +25,7 @@ enum class ConversionResultCode }; template <typename T> -using ConversionResult = Common::Result<T, ConversionResultCode>; +using ConversionResult = std::expected<T, ConversionResultCode>; // This class starts a number of compression threads and one output thread. // The set_up_compress_thread_state function is called at the start of each compression thread. @@ -165,7 +165,7 @@ private: } else { - SetError(result.Error()); + SetError(result.error()); } state->compress_done_event.Set(); |
