diff --git a/include/ss/converter.hpp b/include/ss/converter.hpp index d0c172c..3650576 100644 --- a/include/ss/converter.hpp +++ b/include/ss/converter.hpp @@ -102,7 +102,7 @@ class converter { constexpr static auto string_error = setup::string_error; constexpr static auto default_delimiter = ","; - using error_type = ss::ternary_t; + using error_type = std::conditional_t; public: // parses line with given delimiter, returns a 'T' object created with diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index d3c6e2a..d22cf45 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -17,7 +17,7 @@ class parser { constexpr static auto string_error = setup::string_error; using multiline = typename setup::multiline; - using error_type = ss::ternary_t; + using error_type = std::conditional_t; constexpr static bool escaped_multiline_enabled = multiline::enabled && setup::escape::enabled; @@ -151,8 +151,8 @@ public: template struct iterable { struct iterator { - using value = - ss::ternary_t>; + using value = std::conditional_t>; iterator() : parser_{nullptr} { } diff --git a/include/ss/setup.hpp b/include/ss/setup.hpp index 1740387..62da91b 100644 --- a/include/ss/setup.hpp +++ b/include/ss/setup.hpp @@ -111,8 +111,8 @@ struct get_matcher { static_assert(count_v <= 1, "the same matcher is cannot" "be defined multiple times"); - using type = ternary_t::value, T, - typename get_matcher::type>; + using type = std::conditional_t::value, T, + typename get_matcher::type>; }; template