Call clear before checking for the existence of push_back

[SVN r54949]
This commit is contained in:
Steven Watanabe committed 2009-07-14 16:52:05 +00:00
1 parent 1ba6d35b4d
commit e6024bc6f7
2 files changed
+165 -1

No files matched your search

@@ -49,7 +49,7 @@ template< \
BOOST_MPL_PP_PARAMS(BOOST_PP_DEC(arity), typename P) \
> \
struct name< BOOST_MPL_PP_PARAMS(BOOST_PP_DEC(arity), P),na > \
: if_< has_push_back<P1> \
: if_< has_push_back< typename clear<P1>::type> \
, aux::name##_impl< \
BOOST_MPL_PP_PARAMS(BOOST_PP_DEC(arity), P) \
, back_inserter< typename clear<P1>::type > \