summaryrefslogtreecommitdiffhomepage
path: root/compat/meta.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:28:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:34:58 +0100
commit364c1ecd8703dadaaa9c7479335e469b153a1be0 (patch)
treea2ba1f508c5007857d865cc06bb696de0e398038 /compat/meta.hpp
parent11ef6b48676c52a42a81f1f5ee021cb37e728800 (diff)
compat: split/cleanup util.hpp
Some of the headers are clearly useless. Remove them. Move what's inside util.hpp into separate headers. Adjust usages. Will remove util.hpp.
Diffstat (limited to 'compat/meta.hpp')
-rw-r--r--compat/meta.hpp8
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