From 1409114c9692c87b107011124be9568ecb144828 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 28 Sep 2019 10:58:02 +0900 Subject: [PATCH] refactor: add utility meta-func for internal use --- toml/traits.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/toml/traits.hpp b/toml/traits.hpp index c221ed4..c0c5ee9 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -240,6 +240,19 @@ disjunction< > >{}; +// --------------------------------------------------------------------------- +// C++20 remove_cvref_t + +template +struct remove_cvref +{ + using type = typename std::remove_cv< + typename std::remove_reference::type>::type; +}; + +template +using remove_cvref_t = typename remove_cvref::type; + }// detail }//toml #endif // TOML_TRAITS