diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-02 03:05:56 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-02 03:05:56 +0100 |
| commit | ca697d6ca0c49f91ca13c72f0bb870d297b26767 (patch) | |
| tree | 1f0e875a019804022b043878fc56404d88becd9a /nihil.error/error.ccm | |
| parent | 83eae6f3280b237ff4fb080947658cc91fde9532 (diff) | |
| download | nihil-ca697d6ca0c49f91ca13c72f0bb870d297b26767.tar.gz nihil-ca697d6ca0c49f91ca13c72f0bb870d297b26767.tar.bz2 | |
move guard to util
Diffstat (limited to 'nihil.error/error.ccm')
| -rw-r--r-- | nihil.error/error.ccm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nihil.error/error.ccm b/nihil.error/error.ccm index b821e0a..2d5166a 100644 --- a/nihil.error/error.ccm +++ b/nihil.error/error.ccm @@ -46,7 +46,7 @@ export struct error_proxy // ... an std::string; so we can move the string into place if it's an rvalue. error_proxy(auto &&what) // NOLINT - requires (std::same_as<std::remove_cvref_t<decltype(what)>, std::string>) + requires(std::same_as<std::remove_cvref_t<decltype(what)>, std::string>) : m_error(std::forward<decltype(what)>(what)) { } @@ -222,8 +222,8 @@ export struct error : std::exception return m_what->c_str(); } - // Allow error to be implicitly converted to std::expected and std::unexpected, to make using it - // with std::expected easier. + // Allow error to be implicitly converted to std::expected and std::unexpected, to make + // using it with std::expected easier. template<typename T> operator std::expected<T, error> () && // NOLINT |
