diff options
Diffstat (limited to 'compat/meta.hpp')
-rw-r--r-- | compat/meta.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/meta.hpp b/compat/meta.hpp index e4c49ef6..ce81b3d0 100644 --- a/compat/meta.hpp +++ b/compat/meta.hpp @@ -8,6 +8,12 @@ */ #include <type_traits> + +template<typename t> +using cv_qualified = std::conditional_t<std::is_fundamental_v<std::decay_t<t>>, std::decay_t<t>, const t&>; + +#if 0 + #include <tuple> #include <cstddef> @@ -76,3 +82,5 @@ template<std::size_t max> using index_sequence = typename detail::index_sequence_<std::size_t, max, std::size_t(0)>::type; } // ns meta + +#endif |