Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85488 - trunk/boost/phoenix/function
From: eric_at_[hidden]
Date: 2013-08-27 12:43:01


Author: eric_niebler
Date: 2013-08-27 12:43:00 EDT (Tue, 27 Aug 2013)
New Revision: 85488
URL: http://svn.boost.org/trac/boost/changeset/85488

Log:
phoenix::function constructor is constexpr, refs #9049

Text files modified:
   trunk/boost/phoenix/function/function.hpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/boost/phoenix/function/function.hpp
==============================================================================
--- trunk/boost/phoenix/function/function.hpp Tue Aug 27 12:21:48 2013 (r85487)
+++ trunk/boost/phoenix/function/function.hpp 2013-08-27 12:43:00 EDT (Tue, 27 Aug 2013) (r85488)
@@ -8,6 +8,7 @@
 #ifndef BOOST_PHOENIX_FUNCTION_FUNCTION_HPP
 #define BOOST_PHOENIX_FUNCTION_FUNCTION_HPP
 
+#include <boost/config.hpp>
 //#include <boost/phoenix/function/function_handling.hpp>
 #include <boost/phoenix/core/detail/function_eval.hpp>
 #include <boost/preprocessor/facilities/expand.hpp>
@@ -32,9 +33,11 @@
     template<typename F>
     struct function
     {
- function() {}
+ BOOST_CONSTEXPR function()
+ : f()
+ {}
 
- function(F f)
+ BOOST_CONSTEXPR function(F f)
           : f(f)
         {}
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk