From d129e6221a0363d84bd21e792cb484f2ebfa2928 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sun, 15 May 2022 19:40:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E2=80=98detail=5Fresult=E2=80=99=20does?= =?UTF-8?q?=20not=20name=20a=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/libimp/result.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/libimp/result.h b/include/libimp/result.h index 121e4b3..e72052b 100644 --- a/include/libimp/result.h +++ b/include/libimp/result.h @@ -43,6 +43,13 @@ public: friend bool operator!=(result_code const &lhs, result_code const &rhs) noexcept; }; +namespace detail_result { + +template +struct default_traits; + +} // namespace detail_result + template , typename = void> @@ -50,9 +57,6 @@ class result; namespace detail_result { -template -struct default_traits; - template struct default_traits::value>> { constexpr static T value() noexcept { return 0; }