diff --git a/tests/unittests/std_interoperability.cpp b/tests/unittests/std_interoperability.cpp index b0a97843a..389084f59 100644 --- a/tests/unittests/std_interoperability.cpp +++ b/tests/unittests/std_interoperability.cpp @@ -30,7 +30,7 @@ struct has_value_type : std::false_type {}; template struct has_value_type> : std::true_type {}; template -inline constexpr bool has_value_type_v = has_value_type::value; +constexpr bool has_value_type_v = has_value_type::value; // typename T::reference template @@ -38,7 +38,7 @@ struct has_reference : std::false_type {}; template struct has_reference> : std::true_type {}; template -inline constexpr bool has_reference_v = has_reference::value; +constexpr bool has_reference_v = has_reference::value; // typename T::const_reference template @@ -46,7 +46,7 @@ struct has_const_reference : std::false_type {}; template struct has_const_reference> : std::true_type {}; template -inline constexpr bool has_const_reference_v = has_const_reference::value; +constexpr bool has_const_reference_v = has_const_reference::value; // typename T::iterator template @@ -54,7 +54,7 @@ struct has_iterator : std::false_type {}; template struct has_iterator> : std::true_type {}; template -inline constexpr bool has_iterator_v = has_iterator::value; +constexpr bool has_iterator_v = has_iterator::value; // typename T::const_iterator template @@ -62,7 +62,7 @@ struct has_const_iterator : std::false_type {}; template struct has_const_iterator> : std::true_type {}; template -inline constexpr bool has_const_iterator_v = has_const_iterator::value; +constexpr bool has_const_iterator_v = has_const_iterator::value; // typename T::difference_type template @@ -70,7 +70,7 @@ struct has_difference_type : std::false_type {}; template struct has_difference_type> : std::true_type {}; template -inline constexpr bool has_difference_type_v = has_difference_type::value; +constexpr bool has_difference_type_v = has_difference_type::value; // typename T::size_type template @@ -78,7 +78,7 @@ struct has_size_type : std::false_type {}; template struct has_size_type> : std::true_type {}; template -inline constexpr bool has_size_type_v = has_size_type::value; +constexpr bool has_size_type_v = has_size_type::value; // typename T::pointer template @@ -86,7 +86,7 @@ struct has_pointer : std::false_type {}; template struct has_pointer> : std::true_type {}; template -inline constexpr bool has_pointer_v = has_pointer::value; +constexpr bool has_pointer_v = has_pointer::value; // typename T::allocator_type template @@ -94,7 +94,7 @@ struct has_allocator_type : std::false_type {}; template struct has_allocator_type> : std::true_type {}; template -inline constexpr bool has_allocator_type_v = has_allocator_type::value; +constexpr bool has_allocator_type_v = has_allocator_type::value; // is_erasable_allocator_unaware template @@ -106,7 +106,7 @@ struct is_erasable_allocator_unaware< std::declval&>(), std::declval>()))>> : std::true_type {}; template -inline constexpr bool is_erasable_allocator_unaware_v = is_erasable_allocator_unaware::value; +constexpr bool is_erasable_allocator_unaware_v = is_erasable_allocator_unaware::value; // typename T::iterator_category template @@ -114,7 +114,7 @@ struct has_iterator_category : std::false_type {}; template struct has_iterator_category> : std::true_type {}; template -inline constexpr bool has_iterator_category_v = has_iterator_category::value; +constexpr bool has_iterator_category_v = has_iterator_category::value; // T::begin() template @@ -122,7 +122,7 @@ struct has_begin : std::false_type {}; template struct has_begin().begin())>> : std::true_type {}; template -inline constexpr bool has_begin_v = has_begin::value; +constexpr bool has_begin_v = has_begin::value; // T::end() template @@ -130,7 +130,7 @@ struct has_end : std::false_type {}; template struct has_end().end())>> : std::true_type {}; template -inline constexpr bool has_end_v = has_end::value; +constexpr bool has_end_v = has_end::value; // T::cbegin() template @@ -138,7 +138,7 @@ struct has_cbegin : std::false_type {}; template struct has_cbegin().cbegin())>> : std::true_type {}; template -inline constexpr bool has_cbegin_v = has_cbegin::value; +constexpr bool has_cbegin_v = has_cbegin::value; // T::cend() template @@ -146,7 +146,7 @@ struct has_cend : std::false_type {}; template struct has_cend().cend())>> : std::true_type {}; template -inline constexpr bool has_cend_v = has_cend::value; +constexpr bool has_cend_v = has_cend::value; // T::operator==(T) template @@ -154,7 +154,7 @@ struct has_equality_comparator : std::false_type {}; template struct has_equality_comparator() == std::declval())>> : std::true_type {}; template -inline constexpr bool has_equality_comparator_v = has_equality_comparator::value; +constexpr bool has_equality_comparator_v = has_equality_comparator::value; // T::operator!=(T) template @@ -162,7 +162,7 @@ struct has_inequality_comparator : std::false_type {}; template struct has_inequality_comparator() != std::declval())>> : std::true_type {}; template -inline constexpr bool has_inequality_comparator_v = has_inequality_comparator::value; +constexpr bool has_inequality_comparator_v = has_inequality_comparator::value; // T::swap(T) template @@ -170,7 +170,7 @@ struct has_swap : std::false_type {}; template struct has_swap().swap(std::declval()))>> : std::true_type {}; template -inline constexpr bool has_swap_v = has_swap::value; +constexpr bool has_swap_v = has_swap::value; // T::size() template @@ -178,7 +178,7 @@ struct has_size : std::false_type {}; template struct has_size().size())>> : std::true_type {}; template -inline constexpr bool has_size_v = has_size::value; +constexpr bool has_size_v = has_size::value; // T::max_size() template @@ -186,7 +186,7 @@ struct has_max_size : std::false_type {}; template struct has_max_size().max_size())>> : std::true_type {}; template -inline constexpr bool has_max_size_v = has_max_size::value; +constexpr bool has_max_size_v = has_max_size::value; // T::empty() template @@ -194,7 +194,7 @@ struct has_empty : std::false_type {}; template struct has_empty().empty())>> : std::true_type {}; template -inline constexpr bool has_empty_v = has_empty::value; +constexpr bool has_empty_v = has_empty::value; // T::operator*() template @@ -218,7 +218,7 @@ struct has_preincrement : std::false_type {}; template struct has_preincrement())>> : std::true_type {}; template -inline constexpr bool has_preincrement_v = has_preincrement::value; +constexpr bool has_preincrement_v = has_preincrement::value; // T::operator++(int) (postincrement) template @@ -226,7 +226,7 @@ struct has_postincrement : std::false_type {}; template struct has_postincrement()++)>> : std::true_type {}; template -inline constexpr bool has_postincrement_v = has_postincrement::value; +constexpr bool has_postincrement_v = has_postincrement::value; // *It = val template @@ -235,7 +235,7 @@ template struct has_dereference_assignment() = std::declval())>> : std::true_type {}; template -inline constexpr bool has_dereference_assignment_v = has_dereference_assignment::value; +constexpr bool has_dereference_assignment_v = has_dereference_assignment::value; // *It++ = val template @@ -245,7 +245,7 @@ struct has_dereference_assignment_increment()++ = std::declval())>> : std::true_type {}; template -inline constexpr bool has_dereference_assignment_increment_v = has_dereference_assignment_increment::value; +constexpr bool has_dereference_assignment_increment_v = has_dereference_assignment_increment::value; // T::push_back(Value) template @@ -254,7 +254,7 @@ template struct has_push_back().push_back(std::declval()))>> : std::true_type {}; template -inline constexpr bool has_push_back_v = has_push_back::value; +constexpr bool has_push_back_v = has_push_back::value; // T::push_front(Value) template @@ -263,7 +263,7 @@ template struct has_push_front().push_front(std::declval()))>> : std::true_type {}; template -inline constexpr bool has_push_front_v = has_push_front::value; +constexpr bool has_push_front_v = has_push_front::value; // T::insert(Value) template @@ -273,7 +273,7 @@ struct has_insert().insert(std::declval(), std::declval()))>> : std::true_type {}; template -inline constexpr bool has_insert_v = has_insert::value; +constexpr bool has_insert_v = has_insert::value; } // namespace traits TEST_CASE("Collection container types", "[collection][container][types][std]") { @@ -926,4 +926,4 @@ TEST_CASE("Collection and std iterator adaptors", "[collection][container][adapt } #undef DOCUMENTED_STATIC_FAILURE -#undef DOCUMENTED_FAILURE \ No newline at end of file +#undef DOCUMENTED_FAILURE