diff --git a/libs/algorithm/test/non_modifying.cpp b/libs/algorithm/test/non_modifying.cpp index ad8608a0..1ecc726b 100644 --- a/libs/algorithm/test/non_modifying.cpp +++ b/libs/algorithm/test/non_modifying.cpp @@ -14,9 +14,13 @@ #endif #include "./all_of.cpp" +#include "./all_of_equal.cpp" #include "./any_of.cpp" +#include "./any_of_equal.cpp" #include "./none_of.cpp" +#include "./none_of_equal.cpp" #include "./one_of.cpp" +#include "./one_of_equal.cpp" #include "./find.cpp" #include "./find_if.cpp" #include "./find_if_not.cpp" @@ -34,6 +38,10 @@ #include "./partition_point.cpp" #include "./is_sorted.cpp" #include "./is_sorted_until.cpp" +#include "./is_increasing.cpp" +#include "./is_decreasing.cpp" +#include "./is_strictly_increasing.cpp" +#include "./is_strictly_decreasing.cpp" #include "./lower_bound.cpp" #include "./upper_bound.cpp" #include "./equal_range.cpp" @@ -48,15 +56,7 @@ #include "./max_element.cpp" #include "./minmax_element.cpp" #include "./lexicographical_compare.cpp" -#include "./all_of_equal.cpp" -#include "./any_of_equal.cpp" -#include "./none_of_equal.cpp" -#include "./one_of_equal.cpp" #include "./tristate_lexicographical_compare.cpp" -#include "./is_increasing.cpp" -#include "./is_decreasing.cpp" -#include "./is_strictly_increasing.cpp" -#include "./is_strictly_decreasing.cpp" #include "./clamp.cpp" #ifdef TESTSPR_CPP_INCLUDE_DISABLE_SPROUT_LIBS_ALGORITHM_TEST_NON_MODIFYIING_CPP diff --git a/sprout/algorithm/non_modifying.hpp b/sprout/algorithm/non_modifying.hpp index c035b48b..cd48fc81 100644 --- a/sprout/algorithm/non_modifying.hpp +++ b/sprout/algorithm/non_modifying.hpp @@ -10,9 +10,13 @@ #include #include +#include #include +#include #include +#include #include +#include #include #include #include @@ -30,13 +34,17 @@ #include #include #include +#include +#include +#include +#include #include #include #include #include #include -#include #include +#include #include #include #include @@ -44,15 +52,7 @@ #include #include #include -#include -#include -#include -#include #include -#include -#include -#include -#include #include #include #include diff --git a/sprout/array/make_array.hpp b/sprout/array/make_array.hpp index 4f86d574..ef4f181b 100644 --- a/sprout/array/make_array.hpp +++ b/sprout/array/make_array.hpp @@ -23,7 +23,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR sprout::array make_array(Types&&... args) { - return sprout::array{{sprout::forward(args)...}}; + return sprout::array{{T(sprout::forward(args))...}}; } // @@ -39,7 +39,7 @@ namespace sprout { typename sprout::common_decay::type, sizeof...(Types) > type; - return type{{sprout::forward(args)...}}; + return type{{typename sprout::common_decay::type(sprout::forward(args))...}}; } //