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