eolian-cxx: Fix conversion to bool in clang
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 15 Jun 2016 20:47:03 +0000 (17:47 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Wed, 15 Jun 2016 20:49:56 +0000 (17:49 -0300)
src/lib/eolian_cxx/grammar/attribute_conditional.hpp

index 886b1ed..2803f9f 100644 (file)
@@ -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>