diff options
Diffstat (limited to 'options/value-traits.hpp')
-rw-r--r-- | options/value-traits.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/options/value-traits.hpp b/options/value-traits.hpp index 308e110c..145cd924 100644 --- a/options/value-traits.hpp +++ b/options/value-traits.hpp @@ -9,6 +9,11 @@ #include <QString> namespace options::detail { +template<typename t> +using cv_qualified = + std::conditional_t<std::is_fundamental_v<std::remove_cvref_t<t>>, + std::remove_cvref_t<t>, + std::add_lvalue_reference_t<std::add_const_t<std::remove_cvref_t<t>>>>; template<typename t, typename u = t, typename Enable = void> struct default_value_traits |