From c312a9c338da613f9997aadc7b7e6a67cf636b6f Mon Sep 17 00:00:00 2001 From: Edouard A Date: Sun, 13 Nov 2016 16:16:35 -0500 Subject: [PATCH] Some ICC and MSVC version have some issues. MSVC 2013 is really crippled but most o brigand works with it so we support it as best effort. This fixes the glaring issues of said compilers. @jfalcou --- brigand/algorithms/all.hpp | 13 +- brigand/algorithms/count.hpp | 21 +- brigand/algorithms/detail/non_null.hpp | 2 +- brigand/algorithms/find.hpp | 2 +- brigand/algorithms/index_of.hpp | 4 +- brigand/algorithms/merge.hpp | 13 +- brigand/algorithms/none.hpp | 6 +- brigand/algorithms/remove.hpp | 11 +- brigand/algorithms/replace.hpp | 10 +- brigand/algorithms/sort.hpp | 4 +- brigand/algorithms/split_at.hpp | 12 +- brigand/algorithms/transform.hpp | 30 +-- brigand/functions/lambda/apply.hpp | 124 +++++----- brigand/functions/lambda/bind.hpp | 8 +- brigand/sequences/append.hpp | 16 +- brigand/sequences/front.hpp | 8 +- brigand/sequences/keys_as_sequence.hpp | 6 +- brigand/sequences/map.hpp | 20 +- brigand/sequences/values_as_sequence.hpp | 6 +- brigand/types/inherit_linearly.hpp | 20 +- standalone/brigand.hpp | 292 +++++++++++++---------- test/apply.cpp | 4 +- test/bind.cpp | 44 ++-- test/count_test.cpp | 4 +- test/partition_test.cpp | 48 ++-- test/predicate_reduction_test.cpp | 36 +-- test/remove_test.cpp | 28 +-- test/replace.cpp | 32 +-- test/sort_test.cpp | 164 ++++++------- test/transform.cpp | 252 +++++++++---------- 30 files changed, 671 insertions(+), 569 deletions(-) diff --git a/brigand/algorithms/all.hpp b/brigand/algorithms/all.hpp index f0cd842..33d792b 100644 --- a/brigand/algorithms/all.hpp +++ b/brigand/algorithms/all.hpp @@ -17,6 +17,11 @@ namespace brigand #if defined(BRIGAND_COMP_MSVC_2013) || defined(BRIGAND_COMP_CUDA) || defined(BRIGAND_COMP_INTEL) namespace detail { + template + struct all_helper : ::brigand::apply + { + }; + template struct bools_ { @@ -26,8 +31,8 @@ namespace detail template