Ticket #9049: phx-function-constexpr.patch
File phx-function-constexpr.patch, 791 bytes (added by , 9 years ago) |
---|
-
boost/phoenix/function/function.hpp
8 8 #ifndef BOOST_PHOENIX_FUNCTION_FUNCTION_HPP 9 9 #define BOOST_PHOENIX_FUNCTION_FUNCTION_HPP 10 10 11 #include <boost/config.hpp> 11 12 //#include <boost/phoenix/function/function_handling.hpp> 12 13 #include <boost/phoenix/core/detail/function_eval.hpp> 13 14 #include <boost/preprocessor/facilities/expand.hpp> … … 32 33 template<typename F> 33 34 struct function 34 35 { 35 function() {} 36 BOOST_CONSTEXPR function() 37 : f() 38 {} 36 39 37 function(F f)40 BOOST_CONSTEXPR function(F f) 38 41 : f(f) 39 42 {} 40 43