diff options
Diffstat (limited to 'boost/fusion/view/single_view/single_view.hpp')
-rw-r--r-- | boost/fusion/view/single_view/single_view.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/fusion/view/single_view/single_view.hpp b/boost/fusion/view/single_view/single_view.hpp index 36c2c931c0..a4437902c1 100644 --- a/boost/fusion/view/single_view/single_view.hpp +++ b/boost/fusion/view/single_view/single_view.hpp @@ -43,18 +43,19 @@ namespace boost { namespace fusion typedef mpl::int_<1> size; typedef T value_type; - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED single_view() : val() {} - BOOST_FUSION_GPU_ENABLED explicit single_view(typename detail::call_param<T>::type in_val) + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED + explicit single_view(typename detail::call_param<T>::type in_val) : val(in_val) {} value_type val; }; template <typename T> - BOOST_FUSION_GPU_ENABLED + BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline single_view<typename detail::as_fusion_element<T>::type> make_single_view(T const& v) { |