forked from boostorg/fusion
More constexpr and noexcept support.
Note 1: Forwarding functions are specified as a C++14 constexpr since std::forward is not a constexpr within C++11. Note 2: Though I'm not sure why it doesn't compile, some declarations are specified as a C++14 constexpr or non-constexpr. Note 3: Boost.Tuple adaptation and TR1-based tuple implementations are not constexpr.
This commit is contained in:
1 parent
d7c918e36f
commit
2114bfca6c
280 files changed
+1107
-935
No files matched your search
@@ -47,14 +47,16 @@ namespace boost { namespace fusion
|
||||
|
||||
using unfused<Function,false>::operator();
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED inline explicit unfused(func_const_fwd_t f = function())
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline explicit unfused(func_const_fwd_t f = function())
|
||||
: unfused<Function,false>(f)
|
||||
{ }
|
||||
|
||||
typedef typename boost::result_of<
|
||||
function_c(fusion::vector0<> &) >::type call_const_0_result;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED inline call_const_0_result operator()() const
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline call_const_0_result operator()() const
|
||||
{
|
||||
fusion::vector0<> arg;
|
||||
return this->fnc_transformed(arg);
|
||||
@@ -63,7 +65,8 @@ namespace boost { namespace fusion
|
||||
typedef typename boost::result_of<
|
||||
function(fusion::vector0<> &) >::type call_0_result;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED inline call_0_result operator()()
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline call_0_result operator()()
|
||||
{
|
||||
fusion::vector0<> arg;
|
||||
return this->fnc_transformed(arg);
|
||||
@@ -79,7 +82,7 @@ namespace boost { namespace fusion
|
||||
typedef typename detail::call_param<Function>::type func_const_fwd_t;
|
||||
public:
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline explicit unfused(func_const_fwd_t f = function())
|
||||
: fnc_transformed(f)
|
||||
{ }
|
||||
@@ -149,7 +152,7 @@ namespace boost
|
||||
{ };
|
||||
|
||||
template <BOOST_PP_ENUM_PARAMS(N,typename T)>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename boost::result_of<function_c(BOOST_PP_CAT(fusion::vector,N)
|
||||
<BOOST_PP_ENUM_BINARY_PARAMS(N,T,& BOOST_PP_INTERCEPT)> & )>::type
|
||||
operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,T,& a)) const
|
||||
@@ -161,7 +164,7 @@ namespace boost
|
||||
}
|
||||
|
||||
template <BOOST_PP_ENUM_PARAMS(N,typename T)>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename boost::result_of<function(BOOST_PP_CAT(fusion::vector,N)
|
||||
<BOOST_PP_ENUM_BINARY_PARAMS(N,T,& BOOST_PP_INTERCEPT)> & )>::type
|
||||
operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,T,& a))
|
||||
|
||||
Reference in new issue
Block a user