Improve support for constexpr in fusion::nil and its iterators.

This commit is contained in:
Louis Dionne
2014-10-27 08:55:25 -04:00
parent acf25e3986
commit cdfb1a46b3
4 changed files with 38 additions and 12 deletions

View File

@ -31,11 +31,11 @@ namespace boost { namespace fusion
typedef void_ car_type;
typedef void_ cdr_type;
BOOST_FUSION_GPU_ENABLED
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
nil_() {}
template <typename Iterator>
BOOST_FUSION_GPU_ENABLED
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
nil_(Iterator const& /*iter*/, mpl::true_ /*this_is_an_iterator*/)
{}