aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.error
diff options
context:
space:
mode:
Diffstat (limited to 'nihil.error')
-rw-r--r--nihil.error/error.ccm6
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