eolian-cxx: Fix conversion to bool in clang

This commit is contained in:
Felipe Magno de Almeida 2016-06-15 17:47:03 -03:00
parent 33bb4583b8
commit 136d0d684b
1 changed files with 1 additions and 1 deletions

View 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>