diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-07-01 15:42:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-07-01 15:47:07 +0200 |
commit | 74dff816c07737b7e697e5d63222e59a9fefe23e (patch) | |
tree | 73d1eb3a9578f80e6062788338241e46a3396701 /compat | |
parent | 0c9729df42a030f90ad439b2b45b5905bf13ff19 (diff) |
compat/macros: move cv_qualified to options/
Diffstat (limited to 'compat')
-rw-r--r-- | compat/macros.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compat/macros.hpp b/compat/macros.hpp index 497933cf..b6eea12b 100644 --- a/compat/macros.hpp +++ b/compat/macros.hpp @@ -15,11 +15,3 @@ namespace cxx20_compat { template<typename t> using remove_cvref_t = typename cxx20_compat::remove_cvref<t>::type; - -template<typename t> -using to_const_ref_t = std::add_lvalue_reference_t<std::add_const_t<remove_cvref_t<t>>>; - -template<typename t> -using cv_qualified = std::conditional_t<std::is_fundamental_v<remove_cvref_t<t>>, - remove_cvref_t<t>, - to_const_ref_t<t>>; |