diff --git a/libs/algorithm/test/clamp_range_copy.cpp b/libs/algorithm/test/clamp_range_copy.cpp index 61b45055..b2a24f33 100644 --- a/libs/algorithm/test/clamp_range_copy.cpp +++ b/libs/algorithm/test/clamp_range_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をクランプ (4 <= x <= 7) { @@ -109,8 +109,8 @@ namespace testspr { } { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をクランプ (4 <= x <= 7) { diff --git a/libs/algorithm/test/copy.cpp b/libs/algorithm/test/copy.cpp index 7d343804..16d52a55 100644 --- a/libs/algorithm/test/copy.cpp +++ b/libs/algorithm/test/copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をコピー { diff --git a/libs/algorithm/test/copy_backward.cpp b/libs/algorithm/test/copy_backward.cpp index 1cfa2c9f..d54120e5 100644 --- a/libs/algorithm/test/copy_backward.cpp +++ b/libs/algorithm/test/copy_backward.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をコピー { diff --git a/libs/algorithm/test/copy_if.cpp b/libs/algorithm/test/copy_if.cpp index 4a3c632f..2e0a2ba1 100644 --- a/libs/algorithm/test/copy_if.cpp +++ b/libs/algorithm/test/copy_if.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 奇数をコピー { diff --git a/libs/algorithm/test/copy_n.cpp b/libs/algorithm/test/copy_n.cpp index d29ca438..28fcad9c 100644 --- a/libs/algorithm/test/copy_n.cpp +++ b/libs/algorithm/test/copy_n.cpp @@ -11,8 +11,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 6 要素をコピー { diff --git a/libs/algorithm/test/copy_until.cpp b/libs/algorithm/test/copy_until.cpp index e90bc1b7..993247bd 100644 --- a/libs/algorithm/test/copy_until.cpp +++ b/libs/algorithm/test/copy_until.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 6 未満をコピー { diff --git a/libs/algorithm/test/copy_while.cpp b/libs/algorithm/test/copy_while.cpp index 85c4bce0..77079595 100644 --- a/libs/algorithm/test/copy_while.cpp +++ b/libs/algorithm/test/copy_while.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 6 未満をコピー { diff --git a/libs/algorithm/test/merge.cpp b/libs/algorithm/test/merge.cpp index eb2eef19..9fd62ee4 100644 --- a/libs/algorithm/test/merge.cpp +++ b/libs/algorithm/test/merge.cpp @@ -13,8 +13,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{3, 5, 7, 9}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{2, 4, 6, 8}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // マージ { @@ -111,8 +111,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{3, 5, 7, 9}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{2, 4, 6, 8}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // マージ { diff --git a/libs/algorithm/test/partition_copy.cpp b/libs/algorithm/test/partition_copy.cpp index 414956f1..6d857206 100644 --- a/libs/algorithm/test/partition_copy.cpp +++ b/libs/algorithm/test/partition_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をパーティション (is_odd) { diff --git a/libs/algorithm/test/remove_copy.cpp b/libs/algorithm/test/remove_copy.cpp index a6d900cb..66aa4551 100644 --- a/libs/algorithm/test/remove_copy.cpp +++ b/libs/algorithm/test/remove_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 0, 3, 0, 5, 0, 7, 0, 9, 0}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を削除 (0) { diff --git a/libs/algorithm/test/remove_copy_if.cpp b/libs/algorithm/test/remove_copy_if.cpp index 23dc5873..639871db 100644 --- a/libs/algorithm/test/remove_copy_if.cpp +++ b/libs/algorithm/test/remove_copy_if.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 0, 3, 0, 5, 0, 7, 0, 9, 0}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を削除 (is_odd) { diff --git a/libs/algorithm/test/replace_copy.cpp b/libs/algorithm/test/replace_copy.cpp index 7585b9a9..f5e3b147 100644 --- a/libs/algorithm/test/replace_copy.cpp +++ b/libs/algorithm/test/replace_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 0, 3, 0, 5, 0, 7, 0, 9, 0}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を置換 (0 -> -1) { diff --git a/libs/algorithm/test/replace_copy_if.cpp b/libs/algorithm/test/replace_copy_if.cpp index b8d65c23..16bc4a15 100644 --- a/libs/algorithm/test/replace_copy_if.cpp +++ b/libs/algorithm/test/replace_copy_if.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 0, 3, 0, 5, 0, 7, 0, 9, 0}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を置換 (is_odd -> -1) { diff --git a/libs/algorithm/test/reverse_copy.cpp b/libs/algorithm/test/reverse_copy.cpp index f3f6c6c2..0622d3f5 100644 --- a/libs/algorithm/test/reverse_copy.cpp +++ b/libs/algorithm/test/reverse_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を反転 { diff --git a/libs/algorithm/test/rotate_copy.cpp b/libs/algorithm/test/rotate_copy.cpp index 764f1b6c..45881ab9 100644 --- a/libs/algorithm/test/rotate_copy.cpp +++ b/libs/algorithm/test/rotate_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を回転 { diff --git a/libs/algorithm/test/set_difference.cpp b/libs/algorithm/test/set_difference.cpp index d369131d..032e8e5e 100644 --- a/libs/algorithm/test/set_difference.cpp +++ b/libs/algorithm/test/set_difference.cpp @@ -13,8 +13,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理差 { @@ -111,8 +111,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理差 { diff --git a/libs/algorithm/test/set_intersection.cpp b/libs/algorithm/test/set_intersection.cpp index 67bb4194..24563152 100644 --- a/libs/algorithm/test/set_intersection.cpp +++ b/libs/algorithm/test/set_intersection.cpp @@ -13,8 +13,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{20, 25, 30, 35, 40}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理積 { @@ -111,8 +111,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{20, 25, 30, 35, 40}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理積 { diff --git a/libs/algorithm/test/set_symmetric_difference.cpp b/libs/algorithm/test/set_symmetric_difference.cpp index 24d26023..cc6777d9 100644 --- a/libs/algorithm/test/set_symmetric_difference.cpp +++ b/libs/algorithm/test/set_symmetric_difference.cpp @@ -13,8 +13,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 排他的論理和 { @@ -111,8 +111,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 排他的論理和 { diff --git a/libs/algorithm/test/set_union.cpp b/libs/algorithm/test/set_union.cpp index 91bf0b62..9c6576e0 100644 --- a/libs/algorithm/test/set_union.cpp +++ b/libs/algorithm/test/set_union.cpp @@ -13,8 +13,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理和 { @@ -111,8 +111,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{5, 10, 15, 20, 25}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{10, 20, 30, 40, 50}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // 論理和 { diff --git a/libs/algorithm/test/stable_partition_copy.cpp b/libs/algorithm/test/stable_partition_copy.cpp index 6bc288d2..2b99590b 100644 --- a/libs/algorithm/test/stable_partition_copy.cpp +++ b/libs/algorithm/test/stable_partition_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をパーティション (is_odd) { diff --git a/libs/algorithm/test/swap_element_copy.cpp b/libs/algorithm/test/swap_element_copy.cpp index 6017ca41..c57c4b46 100644 --- a/libs/algorithm/test/swap_element_copy.cpp +++ b/libs/algorithm/test/swap_element_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲をスワップ { diff --git a/libs/algorithm/test/transform.cpp b/libs/algorithm/test/transform.cpp index 640b4ba4..cfb229aa 100644 --- a/libs/algorithm/test/transform.cpp +++ b/libs/algorithm/test/transform.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を変換 { @@ -104,8 +104,8 @@ namespace testspr { { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; SPROUT_STATIC_CONSTEXPR auto arr1_2 = array{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲を変換 { diff --git a/libs/algorithm/test/unique_copy.cpp b/libs/algorithm/test/unique_copy.cpp index ea04f68e..26c5792d 100644 --- a/libs/algorithm/test/unique_copy.cpp +++ b/libs/algorithm/test/unique_copy.cpp @@ -12,8 +12,8 @@ namespace testspr { using namespace sprout; { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 1, 3, 3, 5, 5, 7, 7, 9, 9}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲「……ユニーク」 { @@ -97,8 +97,8 @@ namespace testspr { } { SPROUT_STATIC_CONSTEXPR auto arr1 = array{{1, 1, 3, 3, 5, 5, 7, 7, 9, 9}}; - SPROUT_STATIC_CONSTEXPR auto arr2 = array{}; - SPROUT_STATIC_CONSTEXPR auto arr3 = array{}; + SPROUT_STATIC_CONSTEXPR auto arr2 = array{{}}; + SPROUT_STATIC_CONSTEXPR auto arr3 = array{{}}; // [2 .. 8) の範囲「……ユニーク」 { diff --git a/sprout/algorithm/fixed/clamp_range_copy.hpp b/sprout/algorithm/fixed/clamp_range_copy.hpp index 3c49c71b..4f566a0e 100644 --- a/sprout/algorithm/fixed/clamp_range_copy.hpp +++ b/sprout/algorithm/fixed/clamp_range_copy.hpp @@ -22,7 +22,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type clamp_range_copy_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator first, RandomAccessIterator, Result const& result, typename std::iterator_traits::value_type const& low, typename std::iterator_traits::value_type const& high, Compare comp, @@ -66,11 +66,11 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type clamp_range_copy_impl( - InputIterator first, InputIterator last, Result const& result, - typename std::iterator_traits::value_type const& low, - typename std::iterator_traits::value_type const& high, - Compare comp, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, + typename std::iterator_traits::value_type const&, + typename std::iterator_traits::value_type const&, + Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy.hpp b/sprout/algorithm/fixed/copy.hpp index 8acbe50e..1adaa78a 100644 --- a/sprout/algorithm/fixed/copy.hpp +++ b/sprout/algorithm/fixed/copy.hpp @@ -20,7 +20,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator first, RandomAccessIterator, Result const& result, sprout::index_tuple, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::size_type size, @@ -57,8 +57,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type copy_impl( - InputIterator first, InputIterator last, Result const& result, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy_backward.hpp b/sprout/algorithm/fixed/copy_backward.hpp index cffb2694..48592797 100644 --- a/sprout/algorithm/fixed/copy_backward.hpp +++ b/sprout/algorithm/fixed/copy_backward.hpp @@ -20,7 +20,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_backward_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator, RandomAccessIterator last, Result const& result, sprout::index_tuple, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::size_type size, @@ -56,8 +56,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type copy_backward_impl( - BidirectionalIterator first, BidirectionalIterator last, Result const& result, - typename sprout::container_traits::size_type size, + BidirectionalIterator, BidirectionalIterator, Result const& result, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy_if.hpp b/sprout/algorithm/fixed/copy_if.hpp index a342ca0a..191d30c1 100644 --- a/sprout/algorithm/fixed/copy_if.hpp +++ b/sprout/algorithm/fixed/copy_if.hpp @@ -19,8 +19,8 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type - copy_if_impl(InputIterator first, InputIterator last, Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + copy_if_impl(InputIterator, InputIterator, Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy_n.hpp b/sprout/algorithm/fixed/copy_n.hpp index 18bf8a6c..ba94f9fa 100644 --- a/sprout/algorithm/fixed/copy_n.hpp +++ b/sprout/algorithm/fixed/copy_n.hpp @@ -32,8 +32,8 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), typename sprout::fixed::result_of::algorithm::type >::type - copy_n_impl(InputIterator first, Size n, Result const& result, - typename sprout::container_traits::difference_type offset, + copy_n_impl(InputIterator, Size, Result const& result, + typename sprout::container_traits::difference_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy_until.hpp b/sprout/algorithm/fixed/copy_until.hpp index 3f61db41..ea2b53ee 100644 --- a/sprout/algorithm/fixed/copy_until.hpp +++ b/sprout/algorithm/fixed/copy_until.hpp @@ -34,8 +34,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type copy_until_impl( - InputIterator first, InputIterator last, Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/copy_while.hpp b/sprout/algorithm/fixed/copy_while.hpp index 960fd971..566f3dbe 100644 --- a/sprout/algorithm/fixed/copy_while.hpp +++ b/sprout/algorithm/fixed/copy_while.hpp @@ -33,8 +33,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type copy_while_impl( - InputIterator first, InputIterator last, Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/generate.hpp b/sprout/algorithm/fixed/generate.hpp index a8b105fd..4e694dcc 100644 --- a/sprout/algorithm/fixed/generate.hpp +++ b/sprout/algorithm/fixed/generate.hpp @@ -51,7 +51,7 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type generate_impl( - Container const& cont, Generator const& next, + Container const& cont, Generator const&, typename sprout::container_traits::size_type size ) { diff --git a/sprout/algorithm/fixed/make_heap.hpp b/sprout/algorithm/fixed/make_heap.hpp index 95130ad7..3e4e722a 100644 --- a/sprout/algorithm/fixed/make_heap.hpp +++ b/sprout/algorithm/fixed/make_heap.hpp @@ -75,12 +75,12 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap_impl_1( - Container const& cont, Compare comp, - typename sprout::container_traits::difference_type offset, - typename sprout::container_traits::difference_type size, - typename sprout::container_traits::difference_type n, - typename sprout::container_traits::difference_type l, - typename sprout::container_traits::difference_type r + Container const&, Compare, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type ) { return sprout::throw_recursive_function_template_instantiation_exeeded(); @@ -121,12 +121,12 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type make_heap_impl( - Container const& cont, Compare comp, - typename sprout::container_traits::difference_type offset, - typename sprout::container_traits::difference_type size, - typename sprout::container_traits::difference_type n, - typename sprout::container_traits::difference_type l, - typename sprout::container_traits::difference_type r + Container const&, Compare, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type, + typename sprout::container_traits::difference_type ) { return sprout::throw_recursive_function_template_instantiation_exeeded(); diff --git a/sprout/algorithm/fixed/merge.hpp b/sprout/algorithm/fixed/merge.hpp index 290efde1..58da9643 100644 --- a/sprout/algorithm/fixed/merge.hpp +++ b/sprout/algorithm/fixed/merge.hpp @@ -21,10 +21,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type merge_impl( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2, - Result const& result, Compare comp, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, + InputIterator2, InputIterator2, + Result const& result, Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/partition_copy.hpp b/sprout/algorithm/fixed/partition_copy.hpp index 1709b499..7abeffe1 100644 --- a/sprout/algorithm/fixed/partition_copy.hpp +++ b/sprout/algorithm/fixed/partition_copy.hpp @@ -19,8 +19,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type partition_copy_impl( - InputIterator first, InputIterator last, Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/recurrence.hpp b/sprout/algorithm/fixed/recurrence.hpp index 50a37e09..ac44ba86 100644 --- a/sprout/algorithm/fixed/recurrence.hpp +++ b/sprout/algorithm/fixed/recurrence.hpp @@ -19,7 +19,7 @@ namespace sprout { InitSize == 0, typename sprout::container_traits::value_type >::type - call_gen(Generator const& gen, Args const&... args) { + call_gen(Generator const& gen, Args const&...) { return gen(); } template @@ -35,14 +35,14 @@ namespace sprout { InitSize != 0 && InitSize != sizeof...(Args) + 1, typename sprout::container_traits::value_type >::type - call_gen(Generator const& gen, Head const& head, Args const&... args) { + call_gen(Generator const& gen, Head const&, Args const&... args) { return call_gen(gen, args...); } template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type recurrence_impl_drop( - Container const& cont, Generator const& gen, - typename sprout::container_traits::size_type size + Container const& cont, Generator const&, + typename sprout::container_traits::size_type ) { return sprout::detail::container_complate(cont); @@ -71,7 +71,7 @@ namespace sprout { recurrence_impl_drop( Container const& cont, Generator const& gen, typename sprout::container_traits::size_type size, - Head const& head, Inits const&... inits + Head const&, Inits const&... inits ) { return sprout::fixed::detail::recurrence_impl_drop(cont, gen, size, inits...); @@ -82,8 +82,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type recurrence_impl_1( - Container const& cont, Generator const& gen, - typename sprout::container_traits::size_type size, + Container const& cont, Generator const&, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/remove_copy.hpp b/sprout/algorithm/fixed/remove_copy.hpp index 00c53ab5..9d52135b 100644 --- a/sprout/algorithm/fixed/remove_copy.hpp +++ b/sprout/algorithm/fixed/remove_copy.hpp @@ -20,9 +20,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type remove_copy_impl( - InputIterator first, InputIterator last, - Result const& result, T const& value, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, T const&, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/remove_copy_if.hpp b/sprout/algorithm/fixed/remove_copy_if.hpp index bfffd042..8bc3eb6d 100644 --- a/sprout/algorithm/fixed/remove_copy_if.hpp +++ b/sprout/algorithm/fixed/remove_copy_if.hpp @@ -20,9 +20,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type remove_copy_if_impl( - InputIterator first, InputIterator last, - Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/replace_copy.hpp b/sprout/algorithm/fixed/replace_copy.hpp index 7924b724..76ef774b 100644 --- a/sprout/algorithm/fixed/replace_copy.hpp +++ b/sprout/algorithm/fixed/replace_copy.hpp @@ -21,7 +21,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, + RandomAccessIterator first, RandomAccessIterator, Result const& result, T const& old_value, T const& new_value, sprout::index_tuple, typename sprout::container_traits::difference_type offset, @@ -60,9 +60,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type replace_copy_impl( - InputIterator first, InputIterator last, - Result const& result, T const& old_value, T const& new_value, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, T const&, T const&, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/replace_copy_if.hpp b/sprout/algorithm/fixed/replace_copy_if.hpp index 9c8f0cb3..876c8351 100644 --- a/sprout/algorithm/fixed/replace_copy_if.hpp +++ b/sprout/algorithm/fixed/replace_copy_if.hpp @@ -20,7 +20,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type replace_copy_if_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, + RandomAccessIterator first, RandomAccessIterator, Result const& result, Predicate pred, T const& new_value, sprout::index_tuple, typename sprout::container_traits::difference_type offset, @@ -59,9 +59,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type replace_copy_if_impl( - InputIterator first, InputIterator last, - Result const& result, Predicate pred, T const& new_value, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, Predicate, T const&, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/reverse_copy.hpp b/sprout/algorithm/fixed/reverse_copy.hpp index 338d3211..caf479da 100644 --- a/sprout/algorithm/fixed/reverse_copy.hpp +++ b/sprout/algorithm/fixed/reverse_copy.hpp @@ -20,7 +20,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type reverse_copy_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator, RandomAccessIterator last, Result const& result, sprout::index_tuple, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::size_type size, @@ -58,8 +58,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type reverse_copy_impl( - BidirectionalIterator first, BidirectionalIterator last, Result const& result, - typename sprout::container_traits::size_type size, + BidirectionalIterator, BidirectionalIterator, Result const& result, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/rotate_copy.hpp b/sprout/algorithm/fixed/rotate_copy.hpp index fcb71b11..837e50f6 100644 --- a/sprout/algorithm/fixed/rotate_copy.hpp +++ b/sprout/algorithm/fixed/rotate_copy.hpp @@ -64,9 +64,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl_1( - ForwardIterator first, ForwardIterator last, + ForwardIterator, ForwardIterator, Result const& result, - typename sprout::container_traits::size_type size, + typename sprout::container_traits::size_type, Args const&... args ) { @@ -95,10 +95,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type rotate_copy_impl( - ForwardIterator first, ForwardIterator middle, - ForwardIterator middle_first, ForwardIterator last, + ForwardIterator, ForwardIterator, + ForwardIterator, ForwardIterator, Result const& result, - typename sprout::container_traits::size_type size, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/set_difference.hpp b/sprout/algorithm/fixed/set_difference.hpp index d9565f04..b51b1d37 100644 --- a/sprout/algorithm/fixed/set_difference.hpp +++ b/sprout/algorithm/fixed/set_difference.hpp @@ -21,10 +21,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type set_difference_impl( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2, - Result const& result, Compare comp, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, + InputIterator2, InputIterator2, + Result const& result, Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/set_intersection.hpp b/sprout/algorithm/fixed/set_intersection.hpp index cc465fb7..2b932cc1 100644 --- a/sprout/algorithm/fixed/set_intersection.hpp +++ b/sprout/algorithm/fixed/set_intersection.hpp @@ -21,10 +21,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type set_intersection_impl( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2, - Result const& result, Compare comp, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, + InputIterator2, InputIterator2, + Result const& result, Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/set_symmetric_difference.hpp b/sprout/algorithm/fixed/set_symmetric_difference.hpp index ca4bbb19..d74c450d 100644 --- a/sprout/algorithm/fixed/set_symmetric_difference.hpp +++ b/sprout/algorithm/fixed/set_symmetric_difference.hpp @@ -21,10 +21,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type set_symmetric_difference_impl( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2, - Result const& result, Compare comp, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, + InputIterator2, InputIterator2, + Result const& result, Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/set_union.hpp b/sprout/algorithm/fixed/set_union.hpp index 2be4f0fc..6501cb95 100644 --- a/sprout/algorithm/fixed/set_union.hpp +++ b/sprout/algorithm/fixed/set_union.hpp @@ -21,10 +21,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type set_union_impl( - InputIterator1 first1, InputIterator1 last1, - InputIterator2 first2, InputIterator2 last2, - Result const& result, Compare comp, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, + InputIterator2, InputIterator2, + Result const& result, Compare, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/stable_partition_copy.hpp b/sprout/algorithm/fixed/stable_partition_copy.hpp index 9dc9821d..e0c5b72e 100644 --- a/sprout/algorithm/fixed/stable_partition_copy.hpp +++ b/sprout/algorithm/fixed/stable_partition_copy.hpp @@ -19,9 +19,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl_1( - BidirectionalIterator first, BidirectionalIterator last, - Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, + BidirectionalIterator, BidirectionalIterator, + Result const& result, Predicate, + typename sprout::container_traits::size_type, Args const&... args ) { @@ -59,10 +59,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type stable_partition_copy_impl( - BidirectionalIterator first, BidirectionalIterator last, - Result const& result, Predicate pred, - typename sprout::container_traits::size_type size, - BidirectionalIterator temp_first, + BidirectionalIterator, BidirectionalIterator, + Result const& result, Predicate, + typename sprout::container_traits::size_type, + BidirectionalIterator, Args const&... args ) { diff --git a/sprout/algorithm/fixed/stable_sort.hpp b/sprout/algorithm/fixed/stable_sort.hpp index a1290584..3cca530b 100644 --- a/sprout/algorithm/fixed/stable_sort.hpp +++ b/sprout/algorithm/fixed/stable_sort.hpp @@ -26,12 +26,12 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type stable_sort_impl_synonym( - Container const& cont, Compare comp, - typename sprout::container_traits::size_type size, - typename sprout::container_traits::const_iterator first, - typename sprout::container_traits::const_iterator last, - typename sprout::container_traits::value_type const& value, - typename sprout::container_traits::size_type count, + Container const& cont, Compare, + typename sprout::container_traits::size_type, + typename sprout::container_traits::const_iterator, + typename sprout::container_traits::const_iterator, + typename sprout::container_traits::value_type const&, + typename sprout::container_traits::size_type, Args const&... args ) { @@ -187,7 +187,7 @@ namespace sprout { (sprout::container_traits::static_size <= 1), typename sprout::fixed::result_of::algorithm::type >::type - stable_sort(Container const& cont, Compare comp) { + stable_sort(Container const& cont, Compare) { return sprout::deep_copy(cont); } template diff --git a/sprout/algorithm/fixed/swap_element_copy.hpp b/sprout/algorithm/fixed/swap_element_copy.hpp index e1ed53ed..f1123baf 100644 --- a/sprout/algorithm/fixed/swap_element_copy.hpp +++ b/sprout/algorithm/fixed/swap_element_copy.hpp @@ -19,7 +19,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type swap_element_copy_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, + RandomAccessIterator first, RandomAccessIterator, Result const& result, RandomAccessIterator pos1, RandomAccessIterator pos2, sprout::index_tuple, @@ -67,10 +67,10 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type swap_element_copy_impl( - ForwardIterator first, ForwardIterator last, + ForwardIterator, ForwardIterator, Result const& result, - ForwardIterator pos1, ForwardIterator pos2, - typename sprout::container_traits::size_type size, + ForwardIterator, ForwardIterator, + typename sprout::container_traits::size_type, Args const&... args ) { @@ -106,7 +106,7 @@ namespace sprout { std::forward_iterator_tag* ) { - return sprout::fixed::detail::swap_element_copy_impl(first, last, result, sprout::size(result)); + return sprout::fixed::detail::swap_element_copy_impl(first, last, result, pos1, pos2, sprout::size(result)); } } // namespace detail // diff --git a/sprout/algorithm/fixed/transform.hpp b/sprout/algorithm/fixed/transform.hpp index 1b04598c..1df2df08 100644 --- a/sprout/algorithm/fixed/transform.hpp +++ b/sprout/algorithm/fixed/transform.hpp @@ -21,7 +21,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, + RandomAccessIterator first, RandomAccessIterator, Result const& result, UnaryOperation op, sprout::index_tuple, typename sprout::container_traits::difference_type offset, @@ -61,9 +61,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type transform_impl( - InputIterator first, InputIterator last, - Result const& result, UnaryOperation op, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, UnaryOperation, + typename sprout::container_traits::size_type, Args const&... args ) { @@ -139,7 +139,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type transform_impl_ra( - RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, + RandomAccessIterator1 first1, RandomAccessIterator1, RandomAccessIterator2 first2, Result const& result, BinaryOperation op, sprout::index_tuple, typename sprout::container_traits::difference_type offset, @@ -178,9 +178,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type transform_impl( - InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, - Result const& result, BinaryOperation op, - typename sprout::container_traits::size_type size, + InputIterator1, InputIterator1, InputIterator2, + Result const& result, BinaryOperation, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/algorithm/fixed/unfold.hpp b/sprout/algorithm/fixed/unfold.hpp index 5aab9f95..f1ee6003 100644 --- a/sprout/algorithm/fixed/unfold.hpp +++ b/sprout/algorithm/fixed/unfold.hpp @@ -19,7 +19,7 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type unfold_impl_1( - Container const& cont, Generator const& gen, Next const& next, + Container const& cont, Generator const&, Next const& next, typename sprout::container_traits::size_type size, Args const&... args ) @@ -50,7 +50,7 @@ namespace sprout { sprout::container_traits::static_size == 0, typename sprout::fixed::result_of::algorithm::type >::type unfold_impl( - Container const& cont, Generator const& gen, Init const& init, + Container const& cont, Generator const&, Init const&, typename sprout::container_traits::size_type size ) { diff --git a/sprout/algorithm/fixed/unique_copy.hpp b/sprout/algorithm/fixed/unique_copy.hpp index b9e27e5c..340fe66a 100644 --- a/sprout/algorithm/fixed/unique_copy.hpp +++ b/sprout/algorithm/fixed/unique_copy.hpp @@ -21,9 +21,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( - InputIterator first, InputIterator last, + InputIterator, InputIterator, Result const& result, - typename sprout::container_traits::size_type size, + typename sprout::container_traits::size_type, Head const& head, Args const&... args ) @@ -99,9 +99,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type unique_copy_impl( - InputIterator first, InputIterator last, - Result const& result, BinaryPredicate pred, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, + Result const& result, BinaryPredicate, + typename sprout::container_traits::size_type, Head const& head, Args const&... args ) diff --git a/sprout/algorithm/mismatch.hpp b/sprout/algorithm/mismatch.hpp index 02b42aa2..fff946af 100644 --- a/sprout/algorithm/mismatch.hpp +++ b/sprout/algorithm/mismatch.hpp @@ -164,7 +164,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR RandomAccessIterator1 mismatch2_impl_ra( - RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, RandomAccessIterator2 last2, BinaryPredicate pred, + RandomAccessIterator1 first1, RandomAccessIterator1, RandomAccessIterator2 first2, RandomAccessIterator2, BinaryPredicate pred, typename std::iterator_traits::difference_type size ) { diff --git a/sprout/algorithm/string/join.hpp b/sprout/algorithm/string/join.hpp index 8ad1e491..fb536d84 100644 --- a/sprout/algorithm/string/join.hpp +++ b/sprout/algorithm/string/join.hpp @@ -148,8 +148,7 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator first_cont, ContIterator last_cont, Args const&... args ); template @@ -157,8 +156,7 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator first_cont, ContIterator last_cont, Args const&... args ); template @@ -166,10 +164,8 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl_1( - ContIterator first_cont, - ContIterator last_cont, - InputIterator first, - InputIterator last, + ContIterator, ContIterator, + InputIterator, InputIterator, Args const&... args ) { @@ -180,10 +176,8 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl_1( - ContIterator first_cont, - ContIterator last_cont, - InputIterator first, - InputIterator last, + ContIterator first_cont, ContIterator last_cont, + InputIterator first, InputIterator last, Args const&... args ) { @@ -201,8 +195,7 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator, ContIterator, Args const&... args ) { @@ -213,8 +206,7 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator first_cont, ContIterator last_cont, Args const&... args ) { @@ -279,8 +271,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::container_traits::value_type join_impl_ra_2( - ContIterator first_cont, - SepIterator first, + ContIterator first_cont, SepIterator first, SizeIterator found, Sizes const& sizes, sprout::index_t idx @@ -337,8 +328,7 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator first_cont, ContIterator last_cont, Args const&... args ); template @@ -346,8 +336,7 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, + ContIterator first_cont, ContIterator last_cont, Args const&... args ); template @@ -355,13 +344,10 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl_1( - ContIterator first_cont, - ContIterator last_cont, - SepIterator sep_first, - SepIterator sep_last, - bool sep, - InputIterator first, - InputIterator last, + ContIterator, ContIterator, + SepIterator, SepIterator, + bool, + InputIterator, InputIterator, Args const&... args ) { @@ -372,13 +358,10 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl_1( - ContIterator first_cont, - ContIterator last_cont, - SepIterator sep_first, - SepIterator sep_last, + ContIterator first_cont, ContIterator last_cont, + SepIterator sep_first, SepIterator sep_last, bool sep, - InputIterator first, - InputIterator last, + InputIterator first, InputIterator last, Args const&... args ) { @@ -410,11 +393,9 @@ namespace sprout { sprout::container_traits::static_size == sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, - SepIterator sep_first, - SepIterator sep_last, - bool sep, + ContIterator, ContIterator, + SepIterator, SepIterator, + bool, Args const&... args ) { @@ -425,10 +406,8 @@ namespace sprout { sprout::container_traits::static_size != sizeof...(Args), Result >::type join_impl( - ContIterator first_cont, - ContIterator last_cont, - SepIterator sep_first, - SepIterator sep_last, + ContIterator first_cont, ContIterator last_cont, + SepIterator sep_first, SepIterator sep_last, bool sep, Args const&... args ) diff --git a/sprout/bitset/bitset.hpp b/sprout/bitset/bitset.hpp index eaa8dc1e..e21ab1c1 100644 --- a/sprout/bitset/bitset.hpp +++ b/sprout/bitset/bitset.hpp @@ -149,7 +149,7 @@ namespace sprout { template SPROUT_CONSTEXPR base_bitset do_left_shift_impl_1( - std::size_t wshift, std::size_t offset, + std::size_t wshift, std::size_t, sprout::index_tuple ) const SPROUT_NOEXCEPT { @@ -192,7 +192,7 @@ namespace sprout { template SPROUT_CONSTEXPR base_bitset do_right_shift_impl_1( - std::size_t wshift, std::size_t offset, std::size_t limit, + std::size_t wshift, std::size_t, std::size_t limit, sprout::index_tuple ) const SPROUT_NOEXCEPT { @@ -696,7 +696,7 @@ namespace sprout { return throw std::out_of_range("base_bitset::getword"), *new word_type(); } SPROUT_CONSTEXPR word_type - getword(std::size_t pos) const SPROUT_NOEXCEPT { + getword(std::size_t) const SPROUT_NOEXCEPT { return 0; } SPROUT_CONSTEXPR word_type @@ -854,8 +854,8 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type remake( - Cont&& cont, - typename sprout::container_traits >::difference_type size, + Cont&&, + typename sprout::container_traits >::difference_type, Args&&... args ) { diff --git a/sprout/checksum/sha1.hpp b/sprout/checksum/sha1.hpp index d20c95af..0bfcdfe6 100644 --- a/sprout/checksum/sha1.hpp +++ b/sprout/checksum/sha1.hpp @@ -76,10 +76,10 @@ namespace sprout { } template SPROUT_CONSTEXPR sha1 const process( - sprout::array const& h, - sprout::array const& block, - std::size_t block_byte_index, - std::uint64_t bit_count + sprout::array const&, + sprout::array const&, + std::size_t, + std::uint64_t ) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); @@ -101,8 +101,8 @@ namespace sprout { } template SPROUT_CONSTEXPR sha1 const process_block_2( - std::uint32_t a, std::uint32_t b, std::uint32_t c, std::uint32_t d, std::uint32_t e, - std::size_t i, std::uint32_t f, std::uint32_t k + std::uint32_t, std::uint32_t, std::uint32_t, std::uint32_t, std::uint32_t, + std::size_t, std::uint32_t, std::uint32_t ) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); @@ -137,8 +137,8 @@ namespace sprout { } template SPROUT_CONSTEXPR sha1 const process_block_1( - std::uint32_t a, std::uint32_t b, std::uint32_t c, std::uint32_t d, std::uint32_t e, - std::size_t i = 0 + std::uint32_t, std::uint32_t, std::uint32_t, std::uint32_t, std::uint32_t, + std::size_t ) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); @@ -170,7 +170,7 @@ namespace sprout { } template SPROUT_CONSTEXPR typename std::enable_if::type - process_block_impl(Iterator first, Iterator last, Args... args) const { + process_block_impl(Iterator, Iterator, Args...) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -193,7 +193,7 @@ namespace sprout { } template SPROUT_CONSTEXPR typename std::enable_if::type - process_block_impl(Iterator first, Iterator last, Args... args) const { + process_block_impl(Iterator, Iterator, Args...) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } #else diff --git a/sprout/compost/effects/chorus.hpp b/sprout/compost/effects/chorus.hpp index 933583e2..2c82f303 100644 --- a/sprout/compost/effects/chorus.hpp +++ b/sprout/compost/effects/chorus.hpp @@ -39,13 +39,13 @@ namespace sprout { } template SPROUT_CONSTEXPR typename std::iterator_traits::value_type - calc_1(Outdirected const& x, value_type const& tau, value_type const& t) const { + calc_1(Outdirected const& x, value_type const& t) const { return calc_2(x, static_cast(t), t - static_cast(t)); } template SPROUT_CONSTEXPR typename std::iterator_traits::value_type calc(Outdirected const& x, value_type const& tau) const { - return calc_1(x, tau, x.index() - tau); + return calc_1(x, x.index() - tau); } public: SPROUT_CONSTEXPR chorus_outdirected_value( diff --git a/sprout/compost/effects/clipped.hpp b/sprout/compost/effects/clipped.hpp index eb701202..d90098c8 100644 --- a/sprout/compost/effects/clipped.hpp +++ b/sprout/compost/effects/clipped.hpp @@ -68,7 +68,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::effects::clipped_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::effects::clipped_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::clamped(-1., 1.) diff --git a/sprout/compost/effects/rectified.hpp b/sprout/compost/effects/rectified.hpp index 2c510bad..3539b2c4 100644 --- a/sprout/compost/effects/rectified.hpp +++ b/sprout/compost/effects/rectified.hpp @@ -49,7 +49,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::effects::rectified_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::effects::rectified_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::transformed(sprout::compost::rectify_value<>()) diff --git a/sprout/compost/effects/vibrato.hpp b/sprout/compost/effects/vibrato.hpp index 414c4b4b..97c6d194 100644 --- a/sprout/compost/effects/vibrato.hpp +++ b/sprout/compost/effects/vibrato.hpp @@ -38,13 +38,13 @@ namespace sprout { } template SPROUT_CONSTEXPR typename std::iterator_traits::value_type - calc_1(Outdirected const& x, value_type const& tau, value_type const& t) const { + calc_1(Outdirected const& x, value_type const& t) const { return calc_2(x, static_cast(t), t - static_cast(t)); } template SPROUT_CONSTEXPR typename std::iterator_traits::value_type calc(Outdirected const& x, value_type const& tau) const { - return calc_1(x, tau, x.index() - tau); + return calc_1(x, x.index() - tau); } public: SPROUT_CONSTEXPR vibrato_outdirected_value( diff --git a/sprout/compost/formats/as_complex.hpp b/sprout/compost/formats/as_complex.hpp index caab860c..01c12d60 100644 --- a/sprout/compost/formats/as_complex.hpp +++ b/sprout/compost/formats/as_complex.hpp @@ -37,7 +37,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::formats::as_complex_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::formats::as_complex_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::transformed(sprout::compost::to_complex_value()) diff --git a/sprout/compost/formats/as_imag.hpp b/sprout/compost/formats/as_imag.hpp index 766801ca..b09ba227 100644 --- a/sprout/compost/formats/as_imag.hpp +++ b/sprout/compost/formats/as_imag.hpp @@ -38,7 +38,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::formats::as_imag_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::formats::as_imag_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::transformed(sprout::compost::to_imag_value()) diff --git a/sprout/compost/formats/as_pcm_wave.hpp b/sprout/compost/formats/as_pcm_wave.hpp index 77e0947b..bb6f48ce 100644 --- a/sprout/compost/formats/as_pcm_wave.hpp +++ b/sprout/compost/formats/as_pcm_wave.hpp @@ -72,7 +72,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::formats::as_pcm_wave_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::formats::as_pcm_wave_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::transformed(sprout::compost::normalized_to_pcm_wave()) diff --git a/sprout/compost/formats/as_real.hpp b/sprout/compost/formats/as_real.hpp index 96519ec7..b7d00b6a 100644 --- a/sprout/compost/formats/as_real.hpp +++ b/sprout/compost/formats/as_real.hpp @@ -38,7 +38,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, sprout::compost::formats::as_real_forwarder const& rhs) + operator|(Range&& lhs, sprout::compost::formats::as_real_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::transformed(sprout::compost::to_real_value()) diff --git a/sprout/compost/formats/left_channel.hpp b/sprout/compost/formats/left_channel.hpp index c5301f51..be84c8f3 100644 --- a/sprout/compost/formats/left_channel.hpp +++ b/sprout/compost/formats/left_channel.hpp @@ -25,7 +25,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, left_channel_forwarder const& rhs) + operator|(Range&& lhs, left_channel_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::steps(2) diff --git a/sprout/compost/formats/right_channel.hpp b/sprout/compost/formats/right_channel.hpp index 92b46a8d..3379da6a 100644 --- a/sprout/compost/formats/right_channel.hpp +++ b/sprout/compost/formats/right_channel.hpp @@ -25,7 +25,7 @@ namespace sprout { // template inline SPROUT_CONSTEXPR auto - operator|(Range&& lhs, right_channel_forwarder const& rhs) + operator|(Range&& lhs, right_channel_forwarder const&) -> decltype( sprout::forward(lhs) | sprout::adaptors::steps(2, 1) diff --git a/sprout/compost/utility/iir_filter.hpp b/sprout/compost/utility/iir_filter.hpp index 75e08f9b..d76e2554 100644 --- a/sprout/compost/utility/iir_filter.hpp +++ b/sprout/compost/utility/iir_filter.hpp @@ -30,7 +30,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_lpf_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_lpf_impl_2(T const&, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -82,7 +82,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_hpf_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_hpf_impl_2(T const&, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -134,7 +134,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_bpf_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_bpf_impl_2(T const&, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -152,9 +152,9 @@ namespace sprout { } template inline SPROUT_CONSTEXPR Result - iir_bpf_impl_1(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2) { + iir_bpf_impl_1(T const& fc1, A const& a, B const& b, T const& x, T const& x2) { return sprout::compost::detail::iir_bpf_impl_2( - fc, q, a, b, + fc1, a, b, x, x2, 1 + x + x2 ); } @@ -162,7 +162,7 @@ namespace sprout { inline SPROUT_CONSTEXPR Result iir_bpf_impl(T const& fc1, T const& fc2, A const& a, B const& b) { return sprout::compost::detail::iir_bpf_impl_1( - fc1, fc2, a, b, + fc1, a, b, sprout::math::two_pi() * (fc2 - fc1), sprout::math::four_pi() * fc1 * fc2 ); @@ -190,7 +190,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_bef_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_bef_impl_2(T const&, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -208,9 +208,9 @@ namespace sprout { } template inline SPROUT_CONSTEXPR Result - iir_bef_impl_1(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2) { + iir_bef_impl_1(T const& fc1, A const& a, B const& b, T const& x, T const& x2) { return sprout::compost::detail::iir_bef_impl_2( - fc, q, a, b, + fc1, a, b, x, x2, 1 + x + x2 ); } @@ -218,7 +218,7 @@ namespace sprout { inline SPROUT_CONSTEXPR Result iir_bef_impl(T const& fc1, T const& fc2, A const& a, B const& b) { return sprout::compost::detail::iir_bef_impl_1( - fc1, fc2, a, b, + fc1, a, b, sprout::math::two_pi() * (fc2 - fc1), sprout::math::four_pi() * fc1 * fc2 ); @@ -246,7 +246,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_resonator_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_resonator_impl_2(T const&, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -298,7 +298,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_notch_impl_2(T const& fc, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_notch_impl_2(T const&, T const& q, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -350,7 +350,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_low_shelving_impl_2(T const& fc, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y, T const& g_) { + iir_low_shelving_impl_2(T const&, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y, T const& g_) { return Result( sprout::remake( a, 3, @@ -379,7 +379,7 @@ namespace sprout { inline SPROUT_CONSTEXPR Result iir_low_shelving_impl(T const& fc, T const& q, T const& g, A const& a, B const& b) { return sprout::compost::detail::iir_low_shelving_impl_1( - fc, q, a, b, + fc, q, g, a, b, sprout::math::two_pi() * fc ); } @@ -406,7 +406,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_high_shelving_impl_2(T const& fc, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y, T const& g_) { + iir_high_shelving_impl_2(T const&, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y, T const& g_) { return Result( sprout::remake( a, 3, @@ -435,7 +435,7 @@ namespace sprout { inline SPROUT_CONSTEXPR Result iir_high_shelving_impl(T const& fc, T const& q, T const& g, A const& a, B const& b) { return sprout::compost::detail::iir_high_shelving_impl_1( - fc, q, a, b, + fc, q, g, a, b, sprout::math::two_pi() * fc ); } @@ -462,7 +462,7 @@ namespace sprout { namespace detail { template inline SPROUT_CONSTEXPR Result - iir_peaking_impl_2(T const& fc, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y) { + iir_peaking_impl_2(T const&, T const& q, T const& g, A const& a, B const& b, T const& x, T const& x2, T const& y) { return Result( sprout::remake( a, 3, @@ -490,7 +490,7 @@ namespace sprout { inline SPROUT_CONSTEXPR Result iir_peaking_impl(T const& fc, T const& q, T const& g, A const& a, B const& b) { return sprout::compost::detail::iir_peaking_impl_1( - fc, q, a, b, + fc, q, g, a, b, sprout::math::two_pi() * fc ); } diff --git a/sprout/compressed_pair.hpp b/sprout/compressed_pair.hpp index 56a69e08..90f78a6c 100644 --- a/sprout/compressed_pair.hpp +++ b/sprout/compressed_pair.hpp @@ -213,7 +213,7 @@ namespace sprout { SPROUT_CONSTEXPR second_const_reference second() const { return *this; } - void swap(compressed_pair_impl& other) {} + void swap(compressed_pair_impl&) {} }; template class compressed_pair_impl @@ -252,7 +252,7 @@ namespace sprout { SPROUT_CONSTEXPR second_const_reference second() const { return second_; } - void swap(compressed_pair_impl& other) {} + void swap(compressed_pair_impl&) {} }; template class compressed_pair_impl diff --git a/sprout/container/container_construct_traits.hpp b/sprout/container/container_construct_traits.hpp index e3408bee..79729700 100644 --- a/sprout/container/container_construct_traits.hpp +++ b/sprout/container/container_construct_traits.hpp @@ -47,7 +47,7 @@ namespace sprout { sprout::is_fixed_container::value, typename sprout::container_construct_traits::copied_type >::type - default_remake_container(Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args) { + default_remake_container(Cont&&, typename sprout::container_traits::difference_type, Args&&... args) { return sprout::container_construct_traits::make(sprout::forward(args)...); } template @@ -57,7 +57,7 @@ namespace sprout { , typename sprout::container_construct_traits::copied_type >::type - default_remake_container(Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args) { + default_remake_container(Cont&&, typename sprout::container_traits::difference_type, Args&&... args) { return sprout::container_construct_traits::make(sprout::forward(args)...); } template @@ -65,7 +65,7 @@ namespace sprout { !sprout::is_fixed_container::value, typename sprout::container_construct_traits::copied_type >::type - default_remake_container(Cont&& cont, typename sprout::container_traits::difference_type size, InputIterator first, InputIterator last) { + default_remake_container(Cont&& cont, typename sprout::container_traits::difference_type, InputIterator first, InputIterator last) { typedef typename sprout::container_construct_traits::copied_type copied_type; return copied_type( sprout::make_remake_iterator( diff --git a/sprout/cstdlib/str_to_float.hpp b/sprout/cstdlib/str_to_float.hpp index 9de23e0a..f32aceb4 100644 --- a/sprout/cstdlib/str_to_float.hpp +++ b/sprout/cstdlib/str_to_float.hpp @@ -45,8 +45,7 @@ namespace sprout { FloatType number = FloatType(), std::size_t num_digits = 0, std::size_t num_decimals = 0, - long exponent = 0, - long n = 0 + long exponent = 0 ) { return exponent >= std::numeric_limits::min_exponent @@ -91,8 +90,7 @@ namespace sprout { number, num_digits, num_decimals, - negative ? exponent + n : exponent - n, - n + negative ? exponent + n : exponent - n ) ; } @@ -259,7 +257,7 @@ namespace sprout { std::is_floating_point::value, FloatType >::type - str_to_float(Char const* str, std::nullptr_t endptr) { + str_to_float(Char const* str, std::nullptr_t) { return sprout::detail::str_to_float(str); } diff --git a/sprout/cstdlib/str_to_int.hpp b/sprout/cstdlib/str_to_int.hpp index f2b6aca7..bc9baffd 100644 --- a/sprout/cstdlib/str_to_int.hpp +++ b/sprout/cstdlib/str_to_int.hpp @@ -129,7 +129,7 @@ namespace sprout { std::is_integral::value, IntType >::type - str_to_int(Char const* str, std::nullptr_t endptr, int base = 10) { + str_to_int(Char const* str, std::nullptr_t, int base = 10) { return sprout::detail::str_to_int(str, base); } diff --git a/sprout/cstdlib/strtod.hpp b/sprout/cstdlib/strtod.hpp index 49383220..08a90d51 100644 --- a/sprout/cstdlib/strtod.hpp +++ b/sprout/cstdlib/strtod.hpp @@ -16,7 +16,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR double - strtod(Char const* str, std::nullptr_t endptr) { + strtod(Char const* str, std::nullptr_t) { return sprout::str_to_float(str); } template diff --git a/sprout/cstdlib/strtof.hpp b/sprout/cstdlib/strtof.hpp index 9089453e..5c1a65c0 100644 --- a/sprout/cstdlib/strtof.hpp +++ b/sprout/cstdlib/strtof.hpp @@ -16,7 +16,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR float - strtof(Char const* str, std::nullptr_t endptr) { + strtof(Char const* str, std::nullptr_t) { return sprout::str_to_float(str); } template diff --git a/sprout/cstdlib/strtol.hpp b/sprout/cstdlib/strtol.hpp index f9d41abb..a4bae1a1 100644 --- a/sprout/cstdlib/strtol.hpp +++ b/sprout/cstdlib/strtol.hpp @@ -20,7 +20,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR long - strtol(Char const* str, std::nullptr_t endptr, int base = 10) { + strtol(Char const* str, std::nullptr_t, int base = 10) { return sprout::str_to_int(str, base); } template diff --git a/sprout/cstdlib/strtold.hpp b/sprout/cstdlib/strtold.hpp index 6afd0d59..9dde96ff 100644 --- a/sprout/cstdlib/strtold.hpp +++ b/sprout/cstdlib/strtold.hpp @@ -16,7 +16,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR long double - strtold(Char const* str, std::nullptr_t endptr) { + strtold(Char const* str, std::nullptr_t) { return sprout::str_to_float(str); } template diff --git a/sprout/cstdlib/strtoll.hpp b/sprout/cstdlib/strtoll.hpp index e8ceec98..2c0e66e3 100644 --- a/sprout/cstdlib/strtoll.hpp +++ b/sprout/cstdlib/strtoll.hpp @@ -20,7 +20,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR long long - strtoll(Char const* str, std::nullptr_t endptr, int base = 10) { + strtoll(Char const* str, std::nullptr_t, int base = 10) { return sprout::str_to_int(str, base); } template diff --git a/sprout/cstdlib/strtoul.hpp b/sprout/cstdlib/strtoul.hpp index f0b6a564..ac1bb50f 100644 --- a/sprout/cstdlib/strtoul.hpp +++ b/sprout/cstdlib/strtoul.hpp @@ -20,7 +20,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR unsigned long - strtoul(Char const* str, std::nullptr_t endptr, int base = 10) { + strtoul(Char const* str, std::nullptr_t, int base = 10) { return sprout::str_to_int(str, base); } template diff --git a/sprout/cstdlib/strtoull.hpp b/sprout/cstdlib/strtoull.hpp index 52850316..f5cd296f 100644 --- a/sprout/cstdlib/strtoull.hpp +++ b/sprout/cstdlib/strtoull.hpp @@ -20,7 +20,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR unsigned long long - strtoull(Char const* str, std::nullptr_t endptr, int base = 10) { + strtoull(Char const* str, std::nullptr_t, int base = 10) { return sprout::str_to_int(str, base); } template diff --git a/sprout/darkroom/objects/polygon/triangle.hpp b/sprout/darkroom/objects/polygon/triangle.hpp index 70b8d4e4..35627a85 100644 --- a/sprout/darkroom/objects/polygon/triangle.hpp +++ b/sprout/darkroom/objects/polygon/triangle.hpp @@ -56,7 +56,7 @@ namespace sprout { } template SPROUT_CONSTEXPR typename intersection::type - intersect_5(Ray const& ray, int hit_side, bool does_intersect, unit_type distance) const { + intersect_5(Ray const& ray, int /*hit_side*/, bool does_intersect, unit_type distance) const { return typename intersection::type( does_intersect, distance, diff --git a/sprout/darkroom/objects/sphere.hpp b/sprout/darkroom/objects/sphere.hpp index 867b997b..73a097d1 100644 --- a/sprout/darkroom/objects/sphere.hpp +++ b/sprout/darkroom/objects/sphere.hpp @@ -61,7 +61,7 @@ namespace sprout { private: template SPROUT_CONSTEXPR zwo_type - zweitens_2(Ray const& ray, unit_type const& i1, unit_type const& i2, int hit_side, bool does_intersect) const { + zweitens_2(Ray const&, unit_type const& i1, unit_type const& i2, int hit_side, bool does_intersect) const { return zwo_type( hit_side, does_intersect, @@ -94,7 +94,7 @@ namespace sprout { } template SPROUT_CONSTEXPR drei_type - drittens_1(Ray const& ray, typename sprout::darkroom::access::unit::type point_of_intersection) const { + drittens_1(Ray const&, typename sprout::darkroom::access::unit::type point_of_intersection) const { return drei_type( point_of_intersection, sprout::darkroom::coords::normalize( @@ -115,7 +115,7 @@ namespace sprout { } template SPROUT_CONSTEXPR typename intersection::type - intersect_6(Ray const& ray, zwo_type const& zwo, drei_type const& drei, Vec const& normal) const { + intersect_6(Ray const&, zwo_type const& zwo, drei_type const& drei, Vec const& normal) const { return typename intersection::type( sprout::tuples::get(zwo), sprout::tuples::get(zwo), diff --git a/sprout/darkroom/textures/texture.hpp b/sprout/darkroom/textures/texture.hpp index df66f662..8fda18f4 100644 --- a/sprout/darkroom/textures/texture.hpp +++ b/sprout/darkroom/textures/texture.hpp @@ -61,7 +61,7 @@ namespace sprout { pixels_type pixels_; public: template - SPROUT_CONSTEXPR image_type(info_type const& info, Elems const&... elems) + SPROUT_CONSTEXPR image_type(info_type const&, Elems const&... elems) : pixels_{{ color_type( static_cast((elems >> 16) & 0xFF) / 0xFF, diff --git a/sprout/detail/algorithm/search_one.hpp b/sprout/detail/algorithm/search_one.hpp index 6c9eddb5..c0e866d0 100644 --- a/sprout/detail/algorithm/search_one.hpp +++ b/sprout/detail/algorithm/search_one.hpp @@ -15,7 +15,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR RandomAccessIterator1 search_one_impl_ra( - RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, RandomAccessIterator2 last2, BinaryPredicate pred + RandomAccessIterator1 first1, RandomAccessIterator1 last1, RandomAccessIterator2 first2, RandomAccessIterator2, BinaryPredicate pred ) { return sprout::mismatch(first1, last1, first2, pred).first == last1 ? first1 diff --git a/sprout/detail/container_complate.hpp b/sprout/detail/container_complate.hpp index c6ec0385..0575e064 100644 --- a/sprout/detail/container_complate.hpp +++ b/sprout/detail/container_complate.hpp @@ -33,7 +33,7 @@ namespace sprout { >::type container_complate_1( Result const& result, - typename sprout::container_traits::difference_type remain, + typename sprout::container_traits::difference_type, Args const&... args ) { diff --git a/sprout/detail/container_complate_backward.hpp b/sprout/detail/container_complate_backward.hpp index ee9332a0..58a98b62 100644 --- a/sprout/detail/container_complate_backward.hpp +++ b/sprout/detail/container_complate_backward.hpp @@ -33,7 +33,7 @@ namespace sprout { >::type container_complate_backward_1( Result const& result, - typename sprout::container_traits::difference_type remain, + typename sprout::container_traits::difference_type, Args const&... args ) { diff --git a/sprout/detail/param_at.hpp b/sprout/detail/param_at.hpp index 9eaf0eca..87457e5b 100644 --- a/sprout/detail/param_at.hpp +++ b/sprout/detail/param_at.hpp @@ -12,7 +12,7 @@ namespace sprout { sizeof...(Values) == 0, R >::type - param_at(std::size_t n, T const& v, Values const&... values) { + param_at(std::size_t, T const& v, Values const&...) { return v; } template @@ -29,7 +29,7 @@ namespace sprout { sizeof...(Values) == 0, R >::type - param_seq_at(std::size_t n, std::size_t m, T const& v, Values const&... values) { + param_seq_at(std::size_t, std::size_t m, T const& v, Values const&...) { return v[m]; } template diff --git a/sprout/endian_traits.hpp b/sprout/endian_traits.hpp index 08e9b6d1..7191f127 100644 --- a/sprout/endian_traits.hpp +++ b/sprout/endian_traits.hpp @@ -21,7 +21,7 @@ namespace sprout { static SPROUT_CONSTEXPR std::size_t size() { return sizeof(type); } - static SPROUT_CONSTEXPR unsigned char get_byte(type const& t, std::size_t i) { + static SPROUT_CONSTEXPR unsigned char get_byte(type const& t, std::size_t) { return static_cast(t); } }; @@ -57,7 +57,7 @@ namespace sprout { static SPROUT_CONSTEXPR std::size_t size() { return sizeof(type); } - static SPROUT_CONSTEXPR unsigned char get_byte(type const& t, std::size_t i) { + static SPROUT_CONSTEXPR unsigned char get_byte(type const& t, std::size_t) { return static_cast(t); } }; diff --git a/sprout/io.hpp b/sprout/io.hpp index 10362c24..798989f4 100644 --- a/sprout/io.hpp +++ b/sprout/io.hpp @@ -265,7 +265,7 @@ namespace sprout { ); } template - SPROUT_CONSTEXPR format_settings flags(sprout::io::flags::field_flag flag) const { + SPROUT_CONSTEXPR format_settings flags(sprout::io::flags::field_flag) const { return format_settings( *this, static_cast( diff --git a/sprout/iterator/back_insert_iterator.hpp b/sprout/iterator/back_insert_iterator.hpp index c1bc3263..f0e05521 100644 --- a/sprout/iterator/back_insert_iterator.hpp +++ b/sprout/iterator/back_insert_iterator.hpp @@ -111,7 +111,7 @@ namespace sprout { private: template static SPROUT_CONSTEXPR copied_type - remake_impl(Cont&& cont, typename sprout::container_traits::difference_type size, InputIterator first, InputIterator last) { + remake_impl(Cont&& cont, InputIterator first, InputIterator last) { return sprout::make( sprout::make_insert_range_iterator( sprout::internal_begin(cont), sprout::end(cont), @@ -136,8 +136,8 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type - remake(Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args) { - return remake_impl(sprout::get_internal(sprout::forward(cont)), size, sprout::forward(args)...); + remake(Cont&& cont, typename sprout::container_traits::difference_type, Args&&... args) { + return remake_impl(sprout::get_internal(sprout::forward(cont)), sprout::forward(args)...); } }; diff --git a/sprout/iterator/front_insert_iterator.hpp b/sprout/iterator/front_insert_iterator.hpp index 5641bbcf..f028b2dc 100644 --- a/sprout/iterator/front_insert_iterator.hpp +++ b/sprout/iterator/front_insert_iterator.hpp @@ -111,7 +111,7 @@ namespace sprout { private: template static SPROUT_CONSTEXPR copied_type - remake_impl(Cont&& cont, typename sprout::container_traits::difference_type size, InputIterator first, InputIterator last) { + remake_impl(Cont&& cont, InputIterator first, InputIterator last) { return sprout::make( sprout::make_insert_range_iterator( sprout::internal_begin(cont), sprout::begin(cont), @@ -136,8 +136,8 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type - remake(Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args) { - return remake_impl(sprout::get_internal(sprout::forward(cont)), size, sprout::forward(args)...); + remake(Cont&& cont, typename sprout::container_traits::difference_type, Args&&... args) { + return remake_impl(sprout::get_internal(sprout::forward(cont)), sprout::forward(args)...); } }; diff --git a/sprout/iterator/insert_iterator.hpp b/sprout/iterator/insert_iterator.hpp index 2a3a6d10..787d57c2 100644 --- a/sprout/iterator/insert_iterator.hpp +++ b/sprout/iterator/insert_iterator.hpp @@ -120,7 +120,7 @@ namespace sprout { private: template static SPROUT_CONSTEXPR copied_type - remake_impl(Iterator pos, Cont&& cont, typename sprout::container_traits::difference_type size, InputIterator first, InputIterator last) { + remake_impl(Iterator pos, Cont&& cont, InputIterator first, InputIterator last) { return sprout::make( sprout::make_insert_range_iterator( sprout::internal_begin(cont), pos, @@ -145,8 +145,8 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type - remake(Cont&& cont, typename sprout::container_traits::difference_type size, Args&&... args) { - return remake_impl(cont.position(), sprout::get_internal(sprout::forward(cont)), size, sprout::forward(args)...); + remake(Cont&& cont, typename sprout::container_traits::difference_type, Args&&... args) { + return remake_impl(cont.position(), sprout::get_internal(sprout::forward(cont)), sprout::forward(args)...); } }; diff --git a/sprout/iterator/value_iterator.hpp b/sprout/iterator/value_iterator.hpp index 00747288..f4b5c42a 100644 --- a/sprout/iterator/value_iterator.hpp +++ b/sprout/iterator/value_iterator.hpp @@ -126,7 +126,7 @@ namespace sprout { temp.swap(*this); return *this; } - SPROUT_CONSTEXPR reference operator[](difference_type n) const { + SPROUT_CONSTEXPR reference operator[](difference_type) const { return holder_.get(); } }; diff --git a/sprout/math/erf.hpp b/sprout/math/erf.hpp index ee8830d1..477838e7 100644 --- a/sprout/math/erf.hpp +++ b/sprout/math/erf.hpp @@ -24,7 +24,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR T - erf_impl_2_b(T x, T w, T t, int k) { + erf_impl_2_b(T x, T t, int k) { return sprout::math::detail::erf_impl_3( x, T(1) - sprout::detail::pow_n( @@ -109,7 +109,7 @@ namespace sprout { inline SPROUT_CONSTEXPR T erf_impl_1(T x, T w) { return w < T(2.2) ? sprout::math::detail::erf_impl_2_a(x, w, w * w) - : w < T(6.9) ? sprout::math::detail::erf_impl_2_b(x, w, sprout::math::fractional_part(w), sprout::math::itrunc(w) - 2) + : w < T(6.9) ? sprout::math::detail::erf_impl_2_b(x, sprout::math::fractional_part(w), sprout::math::itrunc(w) - 2) : sprout::math::detail::erf_impl_3(x, T(1)) ; } diff --git a/sprout/math/gcd.hpp b/sprout/math/gcd.hpp index 4bbbddbb..3789ebfa 100644 --- a/sprout/math/gcd.hpp +++ b/sprout/math/gcd.hpp @@ -50,7 +50,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR BuiltInUnsigned - gcd_binary_2_2(unsigned shifts, sprout::array const& r, unsigned which) { + gcd_binary_2_2(unsigned, sprout::array const&, unsigned) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -81,7 +81,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR BuiltInUnsigned - gcd_binary_2_1(unsigned shifts, sprout::array const& r, unsigned which) { + gcd_binary_2_1(unsigned, sprout::array const&, unsigned) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } #else diff --git a/sprout/math/lgamma.hpp b/sprout/math/lgamma.hpp index d0157fb8..21db5246 100644 --- a/sprout/math/lgamma.hpp +++ b/sprout/math/lgamma.hpp @@ -43,7 +43,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR T - lgamma_impl_2_c_1(T x, T w, T t, int k) { + lgamma_impl_2_c_1(T x, T t, int k) { return sprout::math::detail::lgamma_impl_3( x, k == 0 ? ((((((((((( @@ -81,11 +81,11 @@ namespace sprout { template inline SPROUT_CONSTEXPR T lgamma_impl_2_c(T x, T w, int k) { - return sprout::math::detail::lgamma_impl_2_c_1(x, w, w - (static_cast(k) + 3.5), k); + return sprout::math::detail::lgamma_impl_2_c_1(x, w - (static_cast(k) + 3.5), k); } template inline SPROUT_CONSTEXPR T - lgamma_impl_2_b_2(T x, T w, T t, int k) { + lgamma_impl_2_b_2(T x, T t, int k) { return sprout::math::detail::lgamma_impl_3( x, k == 0 ? (((((((((((( @@ -134,13 +134,13 @@ namespace sprout { } template inline SPROUT_CONSTEXPR T - lgamma_impl_2_b_1(T x, T w, T t, int k) { - return sprout::math::detail::lgamma_impl_2_b_2(x, w, t - (static_cast(k) - T(3.5)), k); + lgamma_impl_2_b_1(T x, T t, int k) { + return sprout::math::detail::lgamma_impl_2_b_2(x, t - (static_cast(k) - T(3.5)), k); } template inline SPROUT_CONSTEXPR T - lgamma_impl_2_b(T x, T w, T t) { - return sprout::math::detail::lgamma_impl_2_b_1(x, w, t, sprout::math::itrunc(t) + 4); + lgamma_impl_2_b(T x, T t) { + return sprout::math::detail::lgamma_impl_2_b_1(x, t, sprout::math::itrunc(t) + 4); } template inline SPROUT_CONSTEXPR T @@ -166,7 +166,7 @@ namespace sprout { inline SPROUT_CONSTEXPR T lgamma_impl_1(T x, T w) { return w < T(0.5) ? sprout::math::detail::lgamma_impl_2_a(x, w, w < T(0.25) ? 0 : 1) - : w < T(3.5) ? sprout::math::detail::lgamma_impl_2_b(x, w, w - T(4.5) / (w + T(0.5))) + : w < T(3.5) ? sprout::math::detail::lgamma_impl_2_b(x, w - T(4.5) / (w + T(0.5))) : w < T(8) ? sprout::math::detail::lgamma_impl_2_c(x, w, sprout::math::itrunc(w) - 3) : sprout::math::detail::lgamma_impl_2_d(x, w, T(1) / w) ; diff --git a/sprout/numeric/dft/detail/dft_element_gen.hpp b/sprout/numeric/dft/detail/dft_element_gen.hpp index 1a08fd4c..b4846a61 100644 --- a/sprout/numeric/dft/detail/dft_element_gen.hpp +++ b/sprout/numeric/dft/detail/dft_element_gen.hpp @@ -85,12 +85,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::iterator_traits::value_type dft_element_gen( InputIterator first, InputIterator last, - typename std::iterator_traits::value_type::value_type arg, - typename std::iterator_traits::difference_type k = 0, - typename std::iterator_traits::value_type value - = typename std::iterator_traits::value_type(), - typename std::iterator_traits::value_type::value_type theta - = typename std::iterator_traits::value_type::value_type() + typename std::iterator_traits::value_type::value_type arg ) { typedef typename std::iterator_traits::iterator_category* category; diff --git a/sprout/numeric/dft/dft_element.hpp b/sprout/numeric/dft/dft_element.hpp index 24b5ee57..efc76ee3 100644 --- a/sprout/numeric/dft/dft_element.hpp +++ b/sprout/numeric/dft/dft_element.hpp @@ -19,8 +19,7 @@ namespace sprout { typedef typename std::iterator_traits::value_type value_type; typedef typename value_type::value_type elem_type; return sprout::detail::dft_element_gen( - first, - last, + first, last, -(sprout::math::two_pi() * i / size) ); } diff --git a/sprout/numeric/dft/fixed/amplitude_spectrum.hpp b/sprout/numeric/dft/fixed/amplitude_spectrum.hpp index 39201ce0..44e7637a 100644 --- a/sprout/numeric/dft/fixed/amplitude_spectrum.hpp +++ b/sprout/numeric/dft/fixed/amplitude_spectrum.hpp @@ -22,7 +22,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type amplitude_spectrum_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator first, RandomAccessIterator, Result const& result, sprout::index_tuple, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::size_type size, @@ -59,8 +59,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type amplitude_spectrum_impl( - ForwardIterator first, ForwardIterator last, Result const& result, - typename sprout::container_traits::size_type size, + ForwardIterator, ForwardIterator, Result const& result, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/numeric/dft/fixed/dft.hpp b/sprout/numeric/dft/fixed/dft.hpp index 935a5e8b..987bc92b 100644 --- a/sprout/numeric/dft/fixed/dft.hpp +++ b/sprout/numeric/dft/fixed/dft.hpp @@ -59,9 +59,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type dft_impl( - ForwardIterator first, ForwardIterator last, Result const& result, - typename sprout::container_traits::size_type size, - ForwardIterator first_, typename sprout::container_traits::difference_type i, + ForwardIterator, ForwardIterator, Result const& result, + typename sprout::container_traits::size_type, + ForwardIterator, typename sprout::container_traits::difference_type, Args const&... args ) { diff --git a/sprout/numeric/dft/fixed/idft.hpp b/sprout/numeric/dft/fixed/idft.hpp index b5d14c8d..73aed51b 100644 --- a/sprout/numeric/dft/fixed/idft.hpp +++ b/sprout/numeric/dft/fixed/idft.hpp @@ -59,9 +59,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type idft_impl( - ForwardIterator first, ForwardIterator last, Result const& result, - typename sprout::container_traits::size_type size, - ForwardIterator first_, typename sprout::container_traits::difference_type i, + ForwardIterator, ForwardIterator, Result const& result, + typename sprout::container_traits::size_type, + ForwardIterator, typename sprout::container_traits::difference_type, Args const&... args ) { diff --git a/sprout/numeric/dft/fixed/phase_spectrum.hpp b/sprout/numeric/dft/fixed/phase_spectrum.hpp index a4012f5c..f0136e97 100644 --- a/sprout/numeric/dft/fixed/phase_spectrum.hpp +++ b/sprout/numeric/dft/fixed/phase_spectrum.hpp @@ -22,7 +22,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type phase_spectrum_impl_ra( - RandomAccessIterator first, RandomAccessIterator last, Result const& result, + RandomAccessIterator first, RandomAccessIterator, Result const& result, sprout::index_tuple, typename sprout::container_traits::difference_type offset, typename sprout::container_traits::size_type size, @@ -59,8 +59,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type phase_spectrum_impl( - ForwardIterator first, ForwardIterator last, Result const& result, - typename sprout::container_traits::size_type size, + ForwardIterator, ForwardIterator, Result const& result, + typename sprout::container_traits::size_type, Args const&... args ) { diff --git a/sprout/numeric/dft/idft_element.hpp b/sprout/numeric/dft/idft_element.hpp index 6acfa299..6d97920b 100644 --- a/sprout/numeric/dft/idft_element.hpp +++ b/sprout/numeric/dft/idft_element.hpp @@ -19,8 +19,7 @@ namespace sprout { typedef typename std::iterator_traits::value_type value_type; typedef typename value_type::value_type elem_type; return sprout::detail::dft_element_gen( - first, - last, + first, last, sprout::math::two_pi() * i / size ) / static_cast(size) diff --git a/sprout/numeric/fixed/adjacent_difference.hpp b/sprout/numeric/fixed/adjacent_difference.hpp index 6caee337..886caeff 100644 --- a/sprout/numeric/fixed/adjacent_difference.hpp +++ b/sprout/numeric/fixed/adjacent_difference.hpp @@ -19,9 +19,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( - InputIterator first, InputIterator last, Result const& result, - typename sprout::container_traits::size_type size, - typename sprout::container_traits::value_type const& value, + InputIterator, InputIterator, Result const& result, + typename sprout::container_traits::size_type, + typename sprout::container_traits::value_type const&, Args const&... args ) { @@ -50,8 +50,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl( - InputIterator first, InputIterator last, Result const& result, - typename sprout::container_traits::size_type size + InputIterator, InputIterator, Result const& result, + typename sprout::container_traits::size_type ) { return sprout::remake(result, sprout::size(result)); @@ -94,9 +94,9 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl_1( - InputIterator first, InputIterator last, Result const& result, BinaryOperation binary_op, - typename sprout::container_traits::size_type size, - typename sprout::container_traits::value_type const& value, + InputIterator, InputIterator, Result const& result, BinaryOperation, + typename sprout::container_traits::size_type, + typename sprout::container_traits::value_type const&, Args const&... args ) { @@ -125,8 +125,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type adjacent_difference_impl( - InputIterator first, InputIterator last, Result const& result, BinaryOperation binary_op, - typename sprout::container_traits::size_type size + InputIterator, InputIterator, Result const& result, BinaryOperation, + typename sprout::container_traits::size_type ) { return sprout::remake(result, sprout::size(result)); diff --git a/sprout/numeric/fixed/partial_sum.hpp b/sprout/numeric/fixed/partial_sum.hpp index 9744ddf9..0c8a42c4 100644 --- a/sprout/numeric/fixed/partial_sum.hpp +++ b/sprout/numeric/fixed/partial_sum.hpp @@ -19,8 +19,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( - InputIterator first, InputIterator last, Result const& result, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, + typename sprout::container_traits::size_type, typename sprout::container_traits::value_type const& value, Args const&... args ) @@ -50,8 +50,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl( - InputIterator first, InputIterator last, Result const& result, - typename sprout::container_traits::size_type size + InputIterator, InputIterator, Result const& result, + typename sprout::container_traits::size_type ) { return sprout::remake(result, sprout::size(result)); @@ -94,8 +94,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl_1( - InputIterator first, InputIterator last, Result const& result, BinaryOperation binary_op, - typename sprout::container_traits::size_type size, + InputIterator, InputIterator, Result const& result, BinaryOperation, + typename sprout::container_traits::size_type, typename sprout::container_traits::value_type const& value, Args const&... args ) @@ -125,8 +125,8 @@ namespace sprout { typename sprout::fixed::result_of::algorithm::type >::type partial_sum_impl( - InputIterator first, InputIterator last, Result const& result, BinaryOperation binary_op, - typename sprout::container_traits::size_type size + InputIterator, InputIterator, Result const& result, BinaryOperation, + typename sprout::container_traits::size_type ) { return sprout::remake(result, sprout::size(result)); diff --git a/sprout/optional/comparison.hpp b/sprout/optional/comparison.hpp index e4efa827..463b2b2f 100644 --- a/sprout/optional/comparison.hpp +++ b/sprout/optional/comparison.hpp @@ -76,7 +76,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR bool - operator<(sprout::optional const& lhs, sprout::nullopt_t) SPROUT_NOEXCEPT { + operator<(sprout::optional const&, sprout::nullopt_t) SPROUT_NOEXCEPT { return false; } template @@ -91,7 +91,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR bool - operator>(sprout::nullopt_t, sprout::optional const& rhs) SPROUT_NOEXCEPT { + operator>(sprout::nullopt_t, sprout::optional const&) SPROUT_NOEXCEPT { return false; } template @@ -101,12 +101,12 @@ namespace sprout { } template inline SPROUT_CONSTEXPR bool - operator<=(sprout::nullopt_t, sprout::optional const& rhs) SPROUT_NOEXCEPT { + operator<=(sprout::nullopt_t, sprout::optional const&) SPROUT_NOEXCEPT { return true; } template inline SPROUT_CONSTEXPR bool - operator>=(sprout::optional const& lhs, sprout::nullopt_t) SPROUT_NOEXCEPT { + operator>=(sprout::optional const&, sprout::nullopt_t) SPROUT_NOEXCEPT { return true; } template diff --git a/sprout/pit/container.hpp b/sprout/pit/container.hpp index 805907fe..b53711f2 100644 --- a/sprout/pit/container.hpp +++ b/sprout/pit/container.hpp @@ -22,7 +22,7 @@ namespace sprout { public: template static SPROUT_CONSTEXPR copied_type - deep_copy(Cont&& cont) { + deep_copy(Cont&&) { return copied_type(); } template @@ -47,7 +47,7 @@ namespace sprout { public: template static SPROUT_CONSTEXPR copied_type - deep_copy(Cont&& cont) { + deep_copy(Cont&&) { return copied_type(); } template @@ -62,7 +62,7 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type - remake(Cont&& cont, typename sprout::container_traits >::difference_type size, InputIterator first, InputIterator last) { + remake(Cont&&, typename sprout::container_traits >::difference_type, InputIterator first, InputIterator last) { return copied_type(first, last); } }; diff --git a/sprout/pit/pit.hpp b/sprout/pit/pit.hpp index 42a08382..20fd416e 100644 --- a/sprout/pit/pit.hpp +++ b/sprout/pit/pit.hpp @@ -93,10 +93,10 @@ namespace sprout { return enumerable_size == 0; } // element access: - reference operator[](size_type i) { + reference operator[](size_type) { return elem; } - SPROUT_CONSTEXPR const_reference operator[](size_type i) const { + SPROUT_CONSTEXPR const_reference operator[](size_type) const { return elem; } reference at(size_type i) { diff --git a/sprout/random/binomial_distribution.hpp b/sprout/random/binomial_distribution.hpp index a2526cc1..cac0d5bf 100644 --- a/sprout/random/binomial_distribution.hpp +++ b/sprout/random/binomial_distribution.hpp @@ -139,7 +139,7 @@ namespace sprout { } static SPROUT_CONSTEXPR btrd_type init_btrd_6( - IntType t, RealType p, RealType r, RealType nr, RealType npq, + IntType, RealType, RealType r, RealType nr, RealType npq, RealType b, RealType a, RealType c, RealType alpha, RealType v_r ) { @@ -257,7 +257,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_10(Engine const& eng, RealType v, IntType k, IntType nm, RealType h, IntType nk) const { + generate_10(Engine const&, RealType, IntType, IntType, RealType, IntType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -269,7 +269,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_9(Engine const& eng, RealType v, IntType k, IntType nm) const { + generate_9(Engine const&, RealType, IntType, IntType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -282,7 +282,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_8(Engine const& eng, RealType v, IntType k, RealType rho, RealType t) const { + generate_8(Engine const&, RealType, IntType, RealType, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -295,7 +295,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_7_3(Engine const& eng, RealType v, IntType k, RealType f) const { + generate_7_3(Engine const&, RealType, IntType, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -308,7 +308,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_7_2(Engine const& eng, RealType v, IntType k, RealType f, IntType i) const { + generate_7_2(Engine const&, RealType, IntType, RealType, IntType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -321,7 +321,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_7_1(Engine const& eng, RealType v, IntType k, RealType f, IntType i) const { + generate_7_1(Engine const&, RealType, IntType, RealType, IntType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -334,7 +334,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_7(Engine const& eng, RealType v, IntType k, RealType f = RealType(1)) const { + generate_7(Engine const&, RealType, IntType, RealType = RealType(1)) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -350,12 +350,12 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_6(Engine const& eng, RealType v, IntType k, RealType km) const { + generate_6(Engine const&, RealType, IntType, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template SPROUT_CONSTEXPR sprout::random::random_result - generate_5(Engine const& eng, RealType v, RealType u, RealType us, IntType k) const { + generate_5(Engine const& eng, RealType v, RealType us, IntType k) const { return k < 0 || k > t_ ? generate(eng) : generate_6(eng, v * btrd_.alpha / (btrd_.a / (us * us) + btrd_.b), k, sprout::abs(k - m_)) @@ -363,17 +363,17 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_5(Engine const& eng, RealType v, RealType u, RealType us, IntType k) const { + generate_5(Engine const&, RealType, RealType, IntType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template SPROUT_CONSTEXPR sprout::random::random_result generate_4(Engine const& eng, RealType v, RealType u, RealType us) const { - return generate_5(eng, v, u, us, static_cast(sprout::math::floor((2 * btrd_.a / us + btrd_.b) * u + btrd_.c))); + return generate_5(eng, v, us, static_cast(sprout::math::floor((2 * btrd_.a / us + btrd_.b) * u + btrd_.c))); } template SPROUT_CONSTEXPR sprout::random::random_result - generate_4(Engine const& eng, RealType v, RealType u, RealType us) const { + generate_4(Engine const&, RealType, RealType, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -383,7 +383,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_3(Engine const& eng, RealType v, RealType u) const { + generate_3(Engine const&, RealType, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -402,7 +402,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_2(Random const& rnd, RealType v) const { + generate_2(Random const&, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -415,7 +415,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_1_1(Engine const& eng, RealType u) const { + generate_1_1(Engine const&, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -428,7 +428,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_1(Engine const& eng, RealType v) const { + generate_1(Engine const&, RealType) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -438,7 +438,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_0(Random const& rnd) const { + generate_0(Random const&) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -448,7 +448,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate(Engine const& eng) const { + generate(Engine const&) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } #else @@ -521,7 +521,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_5(Engine const& eng, RealType v, RealType u, RealType us, IntType k) const { + generate_5(Engine const& eng, RealType v, RealType, RealType us, IntType k) const { return k < 0 || k > t_ ? generate(eng) : generate_6(eng, v * btrd_.alpha / (btrd_.a / (us * us) + btrd_.b), k, sprout::abs(k - m_)) diff --git a/sprout/random/detail/const_mod.hpp b/sprout/random/detail/const_mod.hpp index 146c83e5..eb2a1536 100644 --- a/sprout/random/detail/const_mod.hpp +++ b/sprout/random/detail/const_mod.hpp @@ -59,7 +59,7 @@ namespace sprout { return n == 0 ? m - l1 : invert_euclidian_1(c, l1, l2, n, p); } template - static SPROUT_CONSTEXPR IntType invert_euclidian_3(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian_3(IntType, IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -67,7 +67,7 @@ namespace sprout { return p == 0 ? l2 : invert_euclidian_3(c, l1, l2 + (n / p) * l1, n - (n / p) * p, p); } template - static SPROUT_CONSTEXPR IntType invert_euclidian_2(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian_2(IntType, IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -75,7 +75,7 @@ namespace sprout { return invert_euclidian_2(c, l1 + (p / n) * l2, l2, n, p - (p / n) * n); } template - static SPROUT_CONSTEXPR IntType invert_euclidian_1(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian_1(IntType, IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -85,7 +85,7 @@ namespace sprout { ; } template - static SPROUT_CONSTEXPR IntType invert_euclidian(IntType c) { + static SPROUT_CONSTEXPR IntType invert_euclidian(IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -93,7 +93,7 @@ namespace sprout { return n == 0 ? m - l1 : invert_euclidian0_2(c, l1 + (p / n) * l2, l2, n, p - (p / n) * n); } template - static SPROUT_CONSTEXPR IntType invert_euclidian0_3(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian0_3(IntType, IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -101,11 +101,11 @@ namespace sprout { return p == 0 ? l2 : invert_euclidian0_3(c, l1, l2 + (n / p) * l1, n - (n / p) * p, p); } template - static SPROUT_CONSTEXPR IntType invert_euclidian0_2(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian0_2(IntType, IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template - static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType c, IntType l1, IntType l2, IntType n) { return SPROUT_ASSERT_MSG(std::numeric_limits::max() % n != n - 1, "c must be relatively prime to m."), invert_euclidian0_2( c, l1 + (std::numeric_limits::max() / n) * l2, l2, n, @@ -114,17 +114,17 @@ namespace sprout { ; } template - static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType, IntType, IntType, IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template static SPROUT_CONSTEXPR IntType invert_euclidian0(IntType c) { return SPROUT_ASSERT(c > 0), - c == 1 ? 1 : invert_euclidian0_1(c, 0, 1, c, m) + c == 1 ? 1 : invert_euclidian0_1(c, 0, 1, c) ; } template - static SPROUT_CONSTEXPR IntType invert_euclidian0(IntType c) { + static SPROUT_CONSTEXPR IntType invert_euclidian0(IntType) { return sprout::throw_recursive_function_template_instantiation_exeeded(); } #else @@ -148,7 +148,7 @@ namespace sprout { static SPROUT_CONSTEXPR IntType invert_euclidian0_2(IntType c, IntType l1, IntType l2, IntType n, IntType p) { return p == 0 ? l2 : invert_euclidian0_3(c, l1, l2 + (n / p) * l1, n - (n / p) * p, p); } - static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType c, IntType l1, IntType l2, IntType n, IntType p) { + static SPROUT_CONSTEXPR IntType invert_euclidian0_1(IntType c, IntType l1, IntType l2, IntType n) { return SPROUT_ASSERT_MSG(std::numeric_limits::max() % n != n - 1, "c must be relatively prime to m."), invert_euclidian0_2( c, l1 + (std::numeric_limits::max() / n) * l2, l2, n, @@ -158,7 +158,7 @@ namespace sprout { } static SPROUT_CONSTEXPR IntType invert_euclidian0(IntType c) { return SPROUT_ASSERT(c > 0), - c == 1 ? 1 : invert_euclidian0_1(c, 0, 1, c, m) + c == 1 ? 1 : invert_euclidian0_1(c, 0, 1, c) ; } #endif diff --git a/sprout/random/mersenne_twister.hpp b/sprout/random/mersenne_twister.hpp index c071cfc5..1a36229e 100644 --- a/sprout/random/mersenne_twister.hpp +++ b/sprout/random/mersenne_twister.hpp @@ -99,7 +99,7 @@ namespace sprout { sizeof...(Args) == n, sprout::array >::type - rewind_finish_1(sprout::array const& data, Args const&... args) const { + rewind_finish_1(sprout::array const&, Args const&... args) const { return sprout::array{{args...}}; } template @@ -116,7 +116,7 @@ namespace sprout { sprout::array >::type rewind_finish( - sprout::array const& data, UIntType const* last, std::size_t z, std::size_t i, + sprout::array const&, UIntType const*, std::size_t, std::size_t, Args const&... args ) const { @@ -143,7 +143,7 @@ namespace sprout { sprout::array >::type rewind_4( - sprout::array const& data, UIntType const* last, std::size_t z, UIntType y0, UIntType y1, std::size_t i, + sprout::array const&, UIntType const*, std::size_t, UIntType, UIntType, std::size_t, Args const&... args ) const { @@ -170,7 +170,7 @@ namespace sprout { sprout::array >::type rewind_3( - sprout::array const& data, UIntType const* last, std::size_t z, UIntType y0, UIntType y1, std::size_t i, + sprout::array const&, UIntType const*, std::size_t, UIntType, UIntType, std::size_t, Args const&... args ) const { @@ -202,7 +202,7 @@ namespace sprout { sprout::array >::type rewind_2( - sprout::array const& data, UIntType const* last, std::size_t z, UIntType y0, std::size_t i, + sprout::array const&, UIntType const*, std::size_t, UIntType, std::size_t, Args const&... args ) const { @@ -301,7 +301,7 @@ namespace sprout { SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Args) == n - 1, mersenne_twister_engine - >::type twist_4(std::size_t i, Args const&... args) const { + >::type twist_4(std::size_t, Args const&... args) const { return twist_5(args...); } template @@ -317,7 +317,7 @@ namespace sprout { SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Args) == n - 1 - unroll_extra2, mersenne_twister_engine - >::type twist_3(std::size_t i, Args const&... args) const { + >::type twist_3(std::size_t, Args const&... args) const { return twist_4(n - 1 - unroll_extra2, args...); } template @@ -333,7 +333,7 @@ namespace sprout { SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Args) == n - m, mersenne_twister_engine - >::type twist_2(std::size_t i, Args const&... args) const { + >::type twist_2(std::size_t, Args const&... args) const { return twist_3(n - m, args...); } template @@ -349,7 +349,7 @@ namespace sprout { SPROUT_CONSTEXPR typename std::enable_if< sizeof...(Args) == n - m - unroll_extra1, mersenne_twister_engine - >::type twist_1(std::size_t i, Args const&... args) const { + >::type twist_1(std::size_t, Args const&... args) const { return twist_2(n - m - unroll_extra1, args...); } template diff --git a/sprout/random/uniform_01.hpp b/sprout/random/uniform_01.hpp index 36247eea..bad3a814 100644 --- a/sprout/random/uniform_01.hpp +++ b/sprout/random/uniform_01.hpp @@ -31,7 +31,7 @@ namespace sprout { template friend std::basic_istream& operator>>( std::basic_istream& lhs, - param_type& rhs + param_type& ) { return lhs; @@ -39,12 +39,12 @@ namespace sprout { template friend std::basic_ostream& operator<<( std::basic_ostream& lhs, - param_type const& rhs + param_type const& ) { return lhs; } - friend SPROUT_CONSTEXPR bool operator==(param_type const& lhs, param_type const& rhs) SPROUT_NOEXCEPT { + friend SPROUT_CONSTEXPR bool operator==(param_type const&, param_type const&) SPROUT_NOEXCEPT { return true; } friend SPROUT_CONSTEXPR bool operator!=(param_type const& lhs, param_type const& rhs) SPROUT_NOEXCEPT { @@ -55,7 +55,7 @@ namespace sprout { #ifdef SPROUT_WORKAROUND_NOT_TERMINATE_RECURSIVE_CONSTEXPR_FUNCTION_TEMPLATE template SPROUT_CONSTEXPR sprout::random::random_result - generate_1(Engine const& eng, sprout::random::random_result const& rnd, result_type result) const { + generate_1(Engine const&, sprout::random::random_result const& rnd, result_type result) const { return result < result_type(1) ? sprout::random::random_result(result, rnd.engine(), *this) : generate(rnd.engine(), rnd.engine()()) @@ -63,7 +63,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate_1(Engine const& eng, sprout::random::random_result const& rnd, result_type result) const { + generate_1(Engine const&, sprout::random::random_result const&, result_type) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } template @@ -84,13 +84,13 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result - generate(Engine const& eng, sprout::random::random_result const& rnd) const { + generate(Engine const&, sprout::random::random_result const&) const { return sprout::throw_recursive_function_template_instantiation_exeeded(); } #else template SPROUT_CONSTEXPR sprout::random::random_result - generate_1(Engine const& eng, sprout::random::random_result const& rnd, result_type result) const { + generate_1(Engine const&, sprout::random::random_result const& rnd, result_type result) const { return result < result_type(1) ? sprout::random::random_result(result, rnd.engine(), *this) : generate(rnd.engine(), rnd.engine()()) @@ -114,10 +114,8 @@ namespace sprout { } #endif public: - explicit SPROUT_CONSTEXPR uniform_01() - {} - explicit SPROUT_CONSTEXPR uniform_01(param_type const& parm) - {} + explicit SPROUT_CONSTEXPR uniform_01() {} + explicit SPROUT_CONSTEXPR uniform_01(param_type const&) {} SPROUT_CONSTEXPR result_type min() const SPROUT_NOEXCEPT { return result_type(0); } @@ -127,8 +125,7 @@ namespace sprout { SPROUT_CONSTEXPR param_type param() const SPROUT_NOEXCEPT { return param_type(); } - void param(param_type const& parm) { - } + void param(param_type const&) {} template SPROUT_CONSTEXPR sprout::random::random_result operator()(Engine const& eng) const { return generate(eng, eng()); @@ -136,7 +133,7 @@ namespace sprout { template friend std::basic_istream& operator>>( std::basic_istream& lhs, - uniform_01& rhs + uniform_01& ) { return lhs; @@ -144,12 +141,12 @@ namespace sprout { template friend std::basic_ostream& operator<<( std::basic_ostream& lhs, - uniform_01 const& rhs + uniform_01 const& ) { return lhs; } - friend SPROUT_CONSTEXPR bool operator==(uniform_01 const& lhs, uniform_01 const& rhs) SPROUT_NOEXCEPT { + friend SPROUT_CONSTEXPR bool operator==(uniform_01 const&, uniform_01 const&) SPROUT_NOEXCEPT { return true; } friend SPROUT_CONSTEXPR bool operator!=(uniform_01 const& lhs, uniform_01 const& rhs) SPROUT_NOEXCEPT { diff --git a/sprout/random/uniform_int_distribution.hpp b/sprout/random/uniform_int_distribution.hpp index 69f84777..86dcace9 100644 --- a/sprout/random/uniform_int_distribution.hpp +++ b/sprout/random/uniform_int_distribution.hpp @@ -119,7 +119,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR sprout::random::detail::generate_uniform_int_result generate_uniform_int_true_2_2( - Engine const& eng, T min_value, RangeType range, + Engine const&, T min_value, RangeType range, BaseResult bmin, BaseUnsigned brange, RangeType result, RangeType mult, Result const& result_increment_base ) { @@ -220,7 +220,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR sprout::random::detail::generate_uniform_int_result generate_uniform_int_true_1( - Engine const& eng, T min_value, T max_value, RangeType range, + Engine const& eng, T min_value, T, RangeType range, BaseResult bmin, BaseUnsigned brange ) { diff --git a/sprout/random/uniform_smallint.hpp b/sprout/random/uniform_smallint.hpp index 0a0470d3..aa7a11a6 100644 --- a/sprout/random/uniform_smallint.hpp +++ b/sprout/random/uniform_smallint.hpp @@ -84,7 +84,7 @@ namespace sprout { private: template SPROUT_CONSTEXPR sprout::random::random_result generate_true_2( - Engine const& eng, + Engine const&, sprout::random::random_result const& rnd, RangeType range, BaseUnsigned base_range, @@ -139,7 +139,7 @@ namespace sprout { } template SPROUT_CONSTEXPR sprout::random::random_result generate_false_2( - Engine const& eng, + Engine const&, sprout::random::random_result > const& rnd, RangeType range, RangeType offset diff --git a/sprout/random/unique_seed.hpp b/sprout/random/unique_seed.hpp index 367f8ba0..417f1f2e 100644 --- a/sprout/random/unique_seed.hpp +++ b/sprout/random/unique_seed.hpp @@ -24,7 +24,7 @@ namespace sprout { sizeof...(Args) + 1 == N, sprout::array >::type - make_seed_seq_impl(T const& v, std::size_t seed, Args const&... args) { + make_seed_seq_impl(T const&, std::size_t seed, Args const&... args) { return sprout::array{{args..., seed}}; } template diff --git a/sprout/range/adaptor/copied.hpp b/sprout/range/adaptor/copied.hpp index 62651894..70fc0c78 100644 --- a/sprout/range/adaptor/copied.hpp +++ b/sprout/range/adaptor/copied.hpp @@ -91,7 +91,7 @@ namespace sprout { inline SPROUT_CONSTEXPR sprout::adaptors::copied_range< typename std::remove_reference::type>::type > - operator|(Range&& lhs, sprout::adaptors::copied_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::copied_forwarder const&) { return sprout::adaptors::copied_range< typename std::remove_reference::type>::type >( diff --git a/sprout/range/adaptor/deep_copied.hpp b/sprout/range/adaptor/deep_copied.hpp index c3598696..a20fa9ab 100644 --- a/sprout/range/adaptor/deep_copied.hpp +++ b/sprout/range/adaptor/deep_copied.hpp @@ -27,7 +27,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename sprout::container_construct_traits< typename std::remove_reference::type >::copied_type - operator|(Range&& lhs, sprout::adaptors::deep_copied_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::deep_copied_forwarder const&) { return sprout::deep_copy(sprout::forward(lhs)); } } // namespace adaptors diff --git a/sprout/range/adaptor/indexed.hpp b/sprout/range/adaptor/indexed.hpp index a418bd9c..c89f6c19 100644 --- a/sprout/range/adaptor/indexed.hpp +++ b/sprout/range/adaptor/indexed.hpp @@ -94,7 +94,7 @@ namespace sprout { inline SPROUT_CONSTEXPR sprout::adaptors::indexed_range< typename std::remove_reference::type>::type > - operator|(Range&& lhs, sprout::adaptors::indexed_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::indexed_forwarder const&) { return sprout::adaptors::indexed_range< typename std::remove_reference::type>::type >( diff --git a/sprout/range/adaptor/outdirected.hpp b/sprout/range/adaptor/outdirected.hpp index 80cd02de..a1637df2 100644 --- a/sprout/range/adaptor/outdirected.hpp +++ b/sprout/range/adaptor/outdirected.hpp @@ -60,7 +60,7 @@ namespace sprout { inline SPROUT_CONSTEXPR sprout::adaptors::outdirected_range< typename std::remove_reference::type>::type > - operator|(Range&& lhs, sprout::adaptors::outdirected_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::outdirected_forwarder const&) { return sprout::adaptors::outdirected_range< typename std::remove_reference::type>::type >( diff --git a/sprout/range/adaptor/size_enumed.hpp b/sprout/range/adaptor/size_enumed.hpp index 643b2d3e..f33839c1 100644 --- a/sprout/range/adaptor/size_enumed.hpp +++ b/sprout/range/adaptor/size_enumed.hpp @@ -149,7 +149,7 @@ namespace sprout { inline SPROUT_CONSTEXPR sprout::adaptors::size_enumed_range< typename std::remove_reference::type>::type > - operator|(Range&& lhs, sprout::adaptors::size_enumed_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::size_enumed_forwarder const&) { return sprout::adaptors::size_enumed_range< typename std::remove_reference::type>::type >( diff --git a/sprout/range/adaptor/sized.hpp b/sprout/range/adaptor/sized.hpp index 16533b60..252d0043 100644 --- a/sprout/range/adaptor/sized.hpp +++ b/sprout/range/adaptor/sized.hpp @@ -61,7 +61,7 @@ namespace sprout { typename std::remove_reference::type>::type, Size > - operator|(Range&& lhs, sprout::adaptors::size_holder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::size_holder const&) { return sprout::adaptors::sized_range< typename std::remove_reference::type>::type, Size diff --git a/sprout/range/adaptor/uniqued.hpp b/sprout/range/adaptor/uniqued.hpp index 4ae894cd..2177a218 100644 --- a/sprout/range/adaptor/uniqued.hpp +++ b/sprout/range/adaptor/uniqued.hpp @@ -112,7 +112,7 @@ namespace sprout { sprout::equal_to<>, typename std::remove_reference::type>::type > - operator|(Range&& lhs, sprout::adaptors::uniqued_forwarder const& rhs) { + operator|(Range&& lhs, sprout::adaptors::uniqued_forwarder const&) { return sprout::adaptors::uniqued_range< sprout::equal_to<>, typename std::remove_reference::type>::type diff --git a/sprout/range/algorithm/fixed/copy_if.hpp b/sprout/range/algorithm/fixed/copy_if.hpp index 47faf29e..2aaad1f9 100644 --- a/sprout/range/algorithm/fixed/copy_if.hpp +++ b/sprout/range/algorithm/fixed/copy_if.hpp @@ -15,13 +15,13 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_if(InputRange const& rng, Result const& result, Predicate pred) { - return sprout::fixed::copy_if(sprout::begin(rng), sprout::end(rng), result); + return sprout::fixed::copy_if(sprout::begin(rng), sprout::end(rng), result, pred); } template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_if(InputRange const& rng, Predicate pred) { - return sprout::fixed::copy_if(sprout::begin(rng), sprout::end(rng)); + return sprout::fixed::copy_if(sprout::begin(rng), sprout::end(rng), pred); } } // namespace fixed diff --git a/sprout/range/algorithm/fixed/copy_until.hpp b/sprout/range/algorithm/fixed/copy_until.hpp index 485532f6..ce14087e 100644 --- a/sprout/range/algorithm/fixed/copy_until.hpp +++ b/sprout/range/algorithm/fixed/copy_until.hpp @@ -15,13 +15,13 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_until(InputRange const& rng, Result const& result, Predicate pred) { - return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng), result); + return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng), result, pred); } template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_until(InputRange const& rng, Predicate pred) { - return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng)); + return sprout::fixed::copy_until(sprout::begin(rng), sprout::end(rng), pred); } } // namespace fixed diff --git a/sprout/range/algorithm/fixed/copy_while.hpp b/sprout/range/algorithm/fixed/copy_while.hpp index b26c44d9..7f167b09 100644 --- a/sprout/range/algorithm/fixed/copy_while.hpp +++ b/sprout/range/algorithm/fixed/copy_while.hpp @@ -15,13 +15,13 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_while(InputRange const& rng, Result const& result, Predicate pred) { - return sprout::fixed::copy_while(sprout::begin(rng), sprout::end(rng), result); + return sprout::fixed::copy_while(sprout::begin(rng), sprout::end(rng), result, pred); } template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type copy_while(InputRange const& rng, Predicate pred) { - return sprout::fixed::copy_while(sprout::begin(rng), sprout::end(rng)); + return sprout::fixed::copy_while(sprout::begin(rng), sprout::end(rng), pred); } } // namespace fixed diff --git a/sprout/range/algorithm/fixed/remove_copy.hpp b/sprout/range/algorithm/fixed/remove_copy.hpp index c9ee4421..d5cccca8 100644 --- a/sprout/range/algorithm/fixed/remove_copy.hpp +++ b/sprout/range/algorithm/fixed/remove_copy.hpp @@ -20,7 +20,7 @@ namespace sprout { template inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm::type - remove_copy(InputRange const& rng, Result const& result, T const& value) { + remove_copy(InputRange const& rng, T const& value) { return sprout::fixed::remove_copy(sprout::begin(rng), sprout::end(rng), value); } } // namespace fixed diff --git a/sprout/range/range_return.hpp b/sprout/range/range_return.hpp index 47c00ffd..0d9f6796 100644 --- a/sprout/range/range_return.hpp +++ b/sprout/range/range_return.hpp @@ -32,7 +32,7 @@ namespace sprout { public: static SPROUT_CONSTEXPR type pack( typename sprout::range::lvalue_iterator::type found, - Range&& range + Range&& ) { return found; diff --git a/sprout/string/container.hpp b/sprout/string/container.hpp index 09aa9c7f..3fae1fd1 100644 --- a/sprout/string/container.hpp +++ b/sprout/string/container.hpp @@ -29,7 +29,7 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type - remake(Cont&& cont, typename sprout::container_traits >::difference_type size, Args&&... args) { + remake(Cont&&, typename sprout::container_traits >::difference_type size, Args&&... args) { typedef sprout::detail::make_construct_impl impl_type; return impl_type::make(static_cast(size), sprout::forward(args)...); } diff --git a/sprout/string/npos.hpp b/sprout/string/npos.hpp index 13b70554..1d54d2d7 100644 --- a/sprout/string/npos.hpp +++ b/sprout/string/npos.hpp @@ -46,7 +46,7 @@ namespace sprout { return rhs == lhs; } inline SPROUT_CONSTEXPR bool - operator==(sprout::npos_t lhs, sprout::npos_t rhs) { + operator==(sprout::npos_t, sprout::npos_t) { return true; } template::value>::type = sprout::enabler> @@ -74,7 +74,7 @@ namespace sprout { return rhs == lhs; } inline SPROUT_CONSTEXPR bool - operator<(sprout::npos_t lhs, sprout::npos_t rhs) { + operator<(sprout::npos_t, sprout::npos_t) { return false; } template::value>::type = sprout::enabler> diff --git a/sprout/tuple/traits.hpp b/sprout/tuple/traits.hpp index c6c47622..d347854d 100644 --- a/sprout/tuple/traits.hpp +++ b/sprout/tuple/traits.hpp @@ -81,7 +81,7 @@ namespace sprout { } template static SPROUT_CONSTEXPR copied_type remake( - Tup&& tup, + Tup&&, Args&&... args ) { diff --git a/sprout/tuple/tuple/tuple_decl.hpp b/sprout/tuple/tuple/tuple_decl.hpp index 2e572756..a61c33f7 100644 --- a/sprout/tuple/tuple/tuple_decl.hpp +++ b/sprout/tuple/tuple/tuple_decl.hpp @@ -107,13 +107,13 @@ namespace sprout { public: tuple_impl() = default; template - explicit SPROUT_CONSTEXPR tuple_impl(UTypes&&... args) SPROUT_NOEXCEPT {} + explicit SPROUT_CONSTEXPR tuple_impl(UTypes&&...) SPROUT_NOEXCEPT {} SPROUT_CONSTEXPR tuple_impl(tuple_impl const&) = default; SPROUT_CONSTEXPR tuple_impl(tuple_impl&&) = default; template - SPROUT_CONSTEXPR tuple_impl(tuple_impl const& t) SPROUT_NOEXCEPT {} + SPROUT_CONSTEXPR tuple_impl(tuple_impl const&) SPROUT_NOEXCEPT {} template - SPROUT_CONSTEXPR tuple_impl(tuple_impl&& t) SPROUT_NOEXCEPT {} + SPROUT_CONSTEXPR tuple_impl(tuple_impl&&) SPROUT_NOEXCEPT {} tuple_impl& operator=(tuple_impl const&) = default; tuple_impl& operator=(tuple_impl&& t) = default; template @@ -195,11 +195,11 @@ namespace sprout { : inherited_type(sprout::move(sprout::tuples::detail::tuple_impl::tail(t))) , base_type(sprout::forward(sprout::tuples::detail::tuple_impl::head(t))) {} - SPROUT_CONSTEXPR tuple_impl(tuple_impl const& t) + SPROUT_CONSTEXPR tuple_impl(tuple_impl const&) : inherited_type() , base_type() {} - SPROUT_CONSTEXPR tuple_impl(tuple_impl&& t) + SPROUT_CONSTEXPR tuple_impl(tuple_impl&&) : inherited_type() , base_type() {} @@ -227,11 +227,11 @@ namespace sprout { tail(*this) = sprout::move(sprout::tuples::detail::tuple_impl::tail(t)); return *this; } - tuple_impl& operator=(sprout::tuples::detail::tuple_impl const& t) { + tuple_impl& operator=(sprout::tuples::detail::tuple_impl const&) { *this = sprout::move(tuple_impl()); return *this; } - tuple_impl& operator=(sprout::tuples::detail::tuple_impl&& t) { + tuple_impl& operator=(sprout::tuples::detail::tuple_impl&&) { *this = sprout::move(tuple_impl()); return *this; } @@ -430,15 +430,15 @@ namespace sprout { SPROUT_CONSTEXPR tuple(tuple const&) = default; SPROUT_CONSTEXPR tuple(tuple&&) = default; template - explicit SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, UTypes&&... elements) {} + explicit SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, UTypes&&...) {} template - SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::tuples::tuple const& t) {} + SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::tuples::tuple const&) {} template - SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::tuples::tuple&& t) {} + SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::tuples::tuple&&) {} template - SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::pair const& t) {} + SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::pair const&) {} template - SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::pair&& t) {} + SPROUT_CONSTEXPR tuple(sprout::tuples::flexibly_construct_t, sprout::pair&&) {} // tuple swap void swap(tuple&) SPROUT_NOEXCEPT {} }; diff --git a/sprout/utility/forward.hpp b/sprout/utility/forward.hpp index 650b3eb1..661f8203 100644 --- a/sprout/utility/forward.hpp +++ b/sprout/utility/forward.hpp @@ -15,7 +15,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR T&& - forward(typename std::remove_reference::type&& t) SPROUT_NOEXCEPT SPROUT_DELETED_FUNCTION_DECL + forward(typename std::remove_reference::type&&) SPROUT_NOEXCEPT SPROUT_DELETED_FUNCTION_DECL } // namespace sprout #endif // #ifndef SPROUT_UTILITY_FORWARD_HPP diff --git a/sprout/utility/lvalue_forward.hpp b/sprout/utility/lvalue_forward.hpp index 8010e4f9..5c3112c0 100644 --- a/sprout/utility/lvalue_forward.hpp +++ b/sprout/utility/lvalue_forward.hpp @@ -18,7 +18,7 @@ namespace sprout { } template inline SPROUT_CONSTEXPR typename sprout::lvalue_reference::type - lvalue_forward(typename std::remove_reference::type&& t) SPROUT_DELETED_FUNCTION_DECL + lvalue_forward(typename std::remove_reference::type&&) SPROUT_DELETED_FUNCTION_DECL } // namespace sprout #endif // #ifndef SPROUT_UTILITY_LVALUE_FORWARD_HPP diff --git a/sprout/utility/pack.hpp b/sprout/utility/pack.hpp index 19dc84c5..e9fa193e 100644 --- a/sprout/utility/pack.hpp +++ b/sprout/utility/pack.hpp @@ -50,7 +50,7 @@ namespace sprout { typename sprout::enabler_if::type = sprout::enabler > inline SPROUT_CONSTEXPR R - fppack_at_impl(Head&& head, Tail&&... tail) { + fppack_at_impl(Head&& head, Tail&&...) { return sprout::forward(head); } template< @@ -58,7 +58,7 @@ namespace sprout { typename sprout::enabler_if::type = sprout::enabler > inline SPROUT_CONSTEXPR R - fppack_at_impl(Head&& head, Tail&&... tail) { + fppack_at_impl(Head&&, Tail&&... tail) { return sprout::detail::fppack_at_impl(sprout::forward(tail)...); } } // namespace detail diff --git a/sprout/uuid/string_generator.hpp b/sprout/uuid/string_generator.hpp index 94126318..00aaca78 100644 --- a/sprout/uuid/string_generator.hpp +++ b/sprout/uuid/string_generator.hpp @@ -126,7 +126,7 @@ namespace sprout { sizeof...(Args) == 4, result_type >::type - generate_2_1(next_char nc, Char open_brace, bool has_dashes, Args... args) const { + generate_2_1(next_char nc, Char open_brace, bool, Args... args) const { return is_dash(nc.c) ? generate_2_2(nc.next(), open_brace, true, args...) : generate_2_2(nc, open_brace, false, args...) @@ -145,7 +145,7 @@ namespace sprout { sizeof...(Args) == 16, result_type >::type - generate_2(next_char nc, Char open_brace, bool has_dashes, Args... args) const { + generate_2(next_char nc, Char open_brace, bool, Args... args) const { return !open_brace || (open_brace && is_close_brace(nc.next().c, open_brace)) ? result_type{{args...}} : throw std::runtime_error("string_generator: invalid uuid string (brace not closed)") diff --git a/sprout/variant/variant.hpp b/sprout/variant/variant.hpp index 33bc7c40..7020f0bb 100644 --- a/sprout/variant/variant.hpp +++ b/sprout/variant/variant.hpp @@ -149,7 +149,7 @@ namespace sprout { static SPROUT_CONSTEXPR typename std::enable_if< I == sizeof...(Types), bool - >::type eq(tuple_type const& l, tuple_type const& r, int which) { + >::type eq(tuple_type const&, tuple_type const&, int) { return false; } template @@ -166,7 +166,7 @@ namespace sprout { static SPROUT_CONSTEXPR typename std::enable_if< static_cast(I) == sizeof...(Types), bool - >::type lt(tuple_type const& l, tuple_type const& r, int which) { + >::type lt(tuple_type const&, tuple_type const&, int) { return false; } template @@ -183,7 +183,7 @@ namespace sprout { static typename std::enable_if< static_cast(I) == sizeof...(Types), std::basic_ostream& - >::type output(std::basic_ostream& os, tuple_type const& t, int which) { + >::type output(std::basic_ostream& os, tuple_type const&, int) { return os; } template @@ -200,7 +200,7 @@ namespace sprout { static SPROUT_CONSTEXPR typename std::enable_if< I == sizeof...(Types) - 1, Result - >::type visit(Tuple&& t, Visitor&& v, int which) { + >::type visit(Tuple&& t, Visitor&& v, int) { return sprout::forward(v)(sprout::tuples::get(sprout::forward(t))); } template diff --git a/sprout/weed/attr_cnv/bitwise_or.hpp b/sprout/weed/attr_cnv/bitwise_or.hpp index 6959fb0c..8843d04c 100644 --- a/sprout/weed/attr_cnv/bitwise_or.hpp +++ b/sprout/weed/attr_cnv/bitwise_or.hpp @@ -112,7 +112,7 @@ namespace sprout { sprout::weed::detail::is_elem_and_unused::value && sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type - >::type bitwise_or(X const& x) { + >::type bitwise_or(X const&) { typedef typename sprout::weed::attr_cnv::result_of::bitwise_or::type type; return sprout::make(); } @@ -131,7 +131,7 @@ namespace sprout { sprout::weed::detail::is_unused_and_elem::value && sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type - >::type bitwise_or(X const& x) { + >::type bitwise_or(X const&) { typedef typename sprout::weed::attr_cnv::result_of::bitwise_or::type type; return sprout::make(); } @@ -140,7 +140,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_unused::value, typename sprout::weed::attr_cnv::result_of::bitwise_or::type - >::type bitwise_or(X const& x) { + >::type bitwise_or(X const&) { return sprout::weed::unused(); } } // namespace attr_cnv diff --git a/sprout/weed/attr_cnv/negate.hpp b/sprout/weed/attr_cnv/negate.hpp index cb70bbba..96526362 100644 --- a/sprout/weed/attr_cnv/negate.hpp +++ b/sprout/weed/attr_cnv/negate.hpp @@ -18,7 +18,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::negate::type - >::type negate(T const& t, bool cond) { + >::type negate(T const&, bool) { return sprout::weed::unused(); } } // namespace attr_cnv diff --git a/sprout/weed/attr_cnv/shift_left.hpp b/sprout/weed/attr_cnv/shift_left.hpp index 383af1c8..8561c963 100644 --- a/sprout/weed/attr_cnv/shift_left.hpp +++ b/sprout/weed/attr_cnv/shift_left.hpp @@ -99,7 +99,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_elem_and_unused::value, typename sprout::weed::attr_cnv::result_of::shift_left::type - >::type shift_left(T const& t, U const& u) { + >::type shift_left(T const& t, U const&) { return t; } // unused >> V -> V @@ -107,7 +107,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_unused_and_elem::value, typename sprout::weed::attr_cnv::result_of::shift_left::type - >::type shift_left(T const& t, U const& u) { + >::type shift_left(T const&, U const& u) { return u; } // unused >> unused -> unused @@ -115,7 +115,7 @@ namespace sprout { inline SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::detail::is_both_unused::value, typename sprout::weed::attr_cnv::result_of::shift_left::type - >::type shift_left(T const& t, U const& u) { + >::type shift_left(T const&, U const&) { return sprout::weed::unused(); } } // namespace attr_cnv diff --git a/sprout/weed/attr_cnv/times.hpp b/sprout/weed/attr_cnv/times.hpp index 1a45cd14..b6800f4a 100644 --- a/sprout/weed/attr_cnv/times.hpp +++ b/sprout/weed/attr_cnv/times.hpp @@ -43,7 +43,7 @@ namespace sprout { static SPROUT_CONSTEXPR typename std::enable_if< sprout::weed::traits::is_unused::value, typename sprout::weed::attr_cnv::result_of::times::type - >::type times(Args const&... args) { + >::type times(Args const&...) { return sprout::weed::unused(); } } // namespace attr_cnv diff --git a/sprout/weed/context/parse_context/operator/bitwise_or.hpp b/sprout/weed/context/parse_context/operator/bitwise_or.hpp index 79513e39..7f0d85a9 100644 --- a/sprout/weed/context/parse_context/operator/bitwise_or.hpp +++ b/sprout/weed/context/parse_context/operator/bitwise_or.hpp @@ -44,7 +44,7 @@ namespace sprout { private: template SPROUT_CONSTEXPR result_type call_2( - typename Expr::args_type const& args, + typename Expr::args_type const&, context_type const& ctx, Result2 const& res ) const diff --git a/sprout/weed/context/parse_context/operator/shift_left.hpp b/sprout/weed/context/parse_context/operator/shift_left.hpp index d3054cac..7e622cc4 100644 --- a/sprout/weed/context/parse_context/operator/shift_left.hpp +++ b/sprout/weed/context/parse_context/operator/shift_left.hpp @@ -42,7 +42,7 @@ namespace sprout { private: template SPROUT_CONSTEXPR result_type call_2( - typename Expr::args_type const& args, + typename Expr::args_type const&, context_type const& ctx, Attr1 const& attr, Result2 const& res diff --git a/sprout/weed/parser/auxiliary/eps.hpp b/sprout/weed/parser/auxiliary/eps.hpp index 956895de..c7affa7d 100644 --- a/sprout/weed/parser/auxiliary/eps.hpp +++ b/sprout/weed/parser/auxiliary/eps.hpp @@ -28,8 +28,7 @@ namespace sprout { public: template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ) const { diff --git a/sprout/weed/parser/directive/as_array.hpp b/sprout/weed/parser/directive/as_array.hpp index 9fa705e5..ab2dbd72 100644 --- a/sprout/weed/parser/directive/as_array.hpp +++ b/sprout/weed/parser/directive/as_array.hpp @@ -63,8 +63,7 @@ namespace sprout { {} template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ctx ) const { diff --git a/sprout/weed/parser/directive/as_tuple.hpp b/sprout/weed/parser/directive/as_tuple.hpp index d244604d..a15d9fea 100644 --- a/sprout/weed/parser/directive/as_tuple.hpp +++ b/sprout/weed/parser/directive/as_tuple.hpp @@ -63,8 +63,7 @@ namespace sprout { {} template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ctx ) const { diff --git a/sprout/weed/parser/directive/omit.hpp b/sprout/weed/parser/directive/omit.hpp index 56690daa..5223fb25 100644 --- a/sprout/weed/parser/directive/omit.hpp +++ b/sprout/weed/parser/directive/omit.hpp @@ -57,8 +57,7 @@ namespace sprout { {} template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ctx ) const { diff --git a/sprout/weed/parser/directive/repeat.hpp b/sprout/weed/parser/directive/repeat.hpp index b83ec8c1..6e896464 100644 --- a/sprout/weed/parser/directive/repeat.hpp +++ b/sprout/weed/parser/directive/repeat.hpp @@ -166,8 +166,7 @@ namespace sprout { {} template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ctx ) const { diff --git a/sprout/weed/parser/directive/replace.hpp b/sprout/weed/parser/directive/replace.hpp index 08381641..48bf9adf 100644 --- a/sprout/weed/parser/directive/replace.hpp +++ b/sprout/weed/parser/directive/replace.hpp @@ -60,8 +60,7 @@ namespace sprout { {} template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator first, Iterator, Context const& ctx ) const { diff --git a/sprout/weed/parser/lim.hpp b/sprout/weed/parser/lim.hpp index 81a7dc4a..005e8ac6 100644 --- a/sprout/weed/parser/lim.hpp +++ b/sprout/weed/parser/lim.hpp @@ -52,8 +52,7 @@ namespace sprout { } template SPROUT_CONSTEXPR typename result::type operator()( - Iterator first, - Iterator last, + Iterator, Iterator, Context const& ctx ) const {