From 0773bf0794af5d558b01c39c955da7b3d534edc2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Dec 2018 18:58:51 +0100 Subject: compat/macros: rename unfortunate type alias --- compat/macros.hpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/compat/macros.hpp b/compat/macros.hpp index 89e095dd..05603e7b 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -21,7 +21,7 @@ template using remove_cvref_t = typename cxx20_compat::remove_cvref::type; template -using to_const_cvref_t = std::add_lvalue_reference_t>>; +using to_const_ref_t = std::add_lvalue_reference_t>>; // causes ICE in Visual Studio 2017 Preview. the ICE was reported and they handle them seriously in due time. // the ICE is caused by decltype(auto) and const& return value @@ -38,16 +38,7 @@ using to_const_cvref_t = std::add_lvalue_reference_t using cv_qualified = std::conditional_t>, remove_cvref_t, - to_const_cvref_t>; - -template -[[deprecated]] constexpr cc_forceinline void static_warn() {} - -template<> -constexpr cc_forceinline void static_warn() {} - -#define static_warning(cond) \ - static_warn<(cond)>(); \ + to_const_ref_t>; #define progn(...) ([&]() -> decltype(auto) { __VA_ARGS__ }()) -- cgit v1.2.3