summaryrefslogtreecommitdiffhomepage
path: root/compat/macros.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-24 18:58:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:10 +0100
commit0773bf0794af5d558b01c39c955da7b3d534edc2 (patch)
tree518b40bda239b79c24c7cee1d246a3324639f2ce /compat/macros.hpp
parentdb03e6816bc41572ba4c3639d26e0485c8ab03b3 (diff)
compat/macros: rename unfortunate type alias
Diffstat (limited to 'compat/macros.hpp')
-rw-r--r--compat/macros.hpp13
1 files 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<typename t>
using remove_cvref_t = typename cxx20_compat::remove_cvref<t>::type;
template<typename t>
-using to_const_cvref_t = std::add_lvalue_reference_t<std::add_const_t<remove_cvref_t<t>>>;
+using to_const_ref_t = std::add_lvalue_reference_t<std::add_const_t<remove_cvref_t<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<std::add_const_t<remove_cvr
template<typename t>
using cv_qualified = std::conditional_t<std::is_fundamental_v<remove_cvref_t<t>>,
remove_cvref_t<t>,
- to_const_cvref_t<t>>;
-
-template<bool>
-[[deprecated]] constexpr cc_forceinline void static_warn() {}
-
-template<>
-constexpr cc_forceinline void static_warn<true>() {}
-
-#define static_warning(cond) \
- static_warn<(cond)>(); \
+ to_const_ref_t<t>>;
#define progn(...) ([&]() -> decltype(auto) { __VA_ARGS__ }())