From 600d9e686dcf4e5b7f781341efc7843845a7b7db Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 3 Apr 2018 12:29:30 +0200 Subject: compat/meta: slightly more correct cast --- compat/meta.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compat/meta.hpp b/compat/meta.hpp index 80eca89a..51e9f238 100644 --- a/compat/meta.hpp +++ b/compat/meta.hpp @@ -10,7 +10,9 @@ #include template -using cv_qualified = std::conditional_t>, std::decay_t, const t&>; +using cv_qualified = std::conditional_t>, + std::decay_t, + std::add_lvalue_reference_t>>>; #define progn(...) (([&]() { __VA_ARGS__ })()) #define prog1(x, ...) (([&]() { auto _ret1324 = (x); do { __VA_ARGS__; } while (0); return _ret1324; })()) -- cgit v1.2.3