diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-22 13:16:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:01:53 +0200 |
commit | 0f182b791622ad4491c8aabf8edce21a63839bdc (patch) | |
tree | 7f166beb01891d32d123969eaca6ad37e9b5ebae /compat/meta.hpp | |
parent | 085e99d1fcd7fc8265c69292ff3dbe30167d5b38 (diff) |
compat/meta: moved to macros already
Diffstat (limited to 'compat/meta.hpp')
-rw-r--r-- | compat/meta.hpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compat/meta.hpp b/compat/meta.hpp index c33777f4..b02029a7 100644 --- a/compat/meta.hpp +++ b/compat/meta.hpp @@ -7,18 +7,6 @@ * copyright notice and this permission notice appear in all copies. */ -#include <type_traits> - -template<typename t> -using cv_qualified = std::conditional_t<std::is_fundamental_v<std::decay_t<t>>, - std::decay_t<t>, - std::add_lvalue_reference_t<std::add_const_t<std::remove_reference_t<t>>>>; - -#define progn(...) (([&]() { __VA_ARGS__ })()) -#define prog1(x, ...) (([&]() { auto _ret1324 = (x); do { __VA_ARGS__; } while (0); return _ret1324; })()) - -#define once_only(...) do { static bool once__ = false; if (!once__) { once__ = true; __VA_ARGS__; } } while(false) - #if 0 #include <tuple> |