summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 17:47:03 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-15 17:49:56 -0300
commit136d0d684bf771b849fdb014232244a64f3d01a9 (patch)
treeda5f7d76b01534d4990c385e7ec44fa3011011f6
parent33bb4583b86408450cbb2be6efb7b7d63f11b11e (diff)
downloadefl-136d0d684bf771b849fdb014232244a64f3d01a9.tar.gz
eolian-cxx: Fix conversion to bool in clang
-rw-r--r--src/lib/eolian_cxx/grammar/attribute_conditional.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/attribute_conditional.hpp b/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
index 886b1edb35..2803f9fc48 100644
--- a/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
+++ b/src/lib/eolian_cxx/grammar/attribute_conditional.hpp
@@ -57,7 +57,7 @@ struct attribute_conditional_terminal
namespace type_traits {
template <typename F, typename G>
struct attributes_needed<functional_attribute_conditional_generator<F, G>>
- : std::conditional<attributes_needed<G>::value
+ : std::conditional<(attributes_needed<G>::value >= 1)
, attributes_needed<G>
, std::integral_constant<int, 1>>::type {};
template <typename F>