From ca697d6ca0c49f91ca13c72f0bb870d297b26767 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 2 Jul 2025 03:05:56 +0100 Subject: move guard to util --- nihil.error/error.ccm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nihil.error') 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::string>) + requires(std::same_as, std::string>) : m_error(std::forward(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 operator std::expected () && // NOLINT -- cgit v1.2.3