Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75069 - in trunk: boost/phoenix/object boost/phoenix/object/detail libs/phoenix/test libs/phoenix/test/regression
From: thom.heller_at_[hidden]
Date: 2011-10-20 09:41:40


Author: theller
Date: 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
New Revision: 75069
URL: http://svn.boost.org/trac/boost/changeset/75069

Log:
[phoenix]
    - some cosmetic changes
    - fixing bug #6040

Added:
   trunk/libs/phoenix/test/regression/bug6040.cpp (contents, props changed)
Text files modified:
   trunk/boost/phoenix/object/const_cast.hpp | 2 +-
   trunk/boost/phoenix/object/detail/new_eval.hpp | 4 ++--
   trunk/boost/phoenix/object/dynamic_cast.hpp | 2 +-
   trunk/boost/phoenix/object/reinterpret_cast.hpp | 2 +-
   trunk/boost/phoenix/object/static_cast.hpp | 2 +-
   trunk/libs/phoenix/test/Jamfile | 1 +
   6 files changed, 7 insertions(+), 6 deletions(-)

Modified: trunk/boost/phoenix/object/const_cast.hpp
==============================================================================
--- trunk/boost/phoenix/object/const_cast.hpp (original)
+++ trunk/boost/phoenix/object/const_cast.hpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -29,7 +29,7 @@
         struct result;
 
         template <typename This, typename Target, typename Source, typename Context>
- struct result<This(Target const &, Source const&, Context)>
+ struct result<This(Target, Source, Context)>
             : detail::result_of::target<Target>
         {};
 

Modified: trunk/boost/phoenix/object/detail/new_eval.hpp
==============================================================================
--- trunk/boost/phoenix/object/detail/new_eval.hpp (original)
+++ trunk/boost/phoenix/object/detail/new_eval.hpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -31,8 +31,8 @@
 #pragma wave option(preserve: 1)
 #endif
 
-#define BOOST_PHOENIX_ITERATION_PARAMS \
- (3, (2, BOOST_PHOENIX_COMPOSITE_LIMIT, \
+#define BOOST_PHOENIX_ITERATION_PARAMS \
+ (3, (2, BOOST_PHOENIX_COMPOSITE_LIMIT, \
     <boost/phoenix/object/detail/new_eval.hpp>))
 #include BOOST_PHOENIX_ITERATE()
 

Modified: trunk/boost/phoenix/object/dynamic_cast.hpp
==============================================================================
--- trunk/boost/phoenix/object/dynamic_cast.hpp (original)
+++ trunk/boost/phoenix/object/dynamic_cast.hpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -29,7 +29,7 @@
         struct result;
 
         template <typename This, typename Target, typename Source, typename Context>
- struct result<This(Target const &, Source const&, Context)>
+ struct result<This(Target, Source, Context)>
             : detail::result_of::target<Target>
         {};
 

Modified: trunk/boost/phoenix/object/reinterpret_cast.hpp
==============================================================================
--- trunk/boost/phoenix/object/reinterpret_cast.hpp (original)
+++ trunk/boost/phoenix/object/reinterpret_cast.hpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -29,7 +29,7 @@
         struct result;
 
         template <typename This, typename Target, typename Source, typename Context>
- struct result<This(Target const &, Source const&, Context)>
+ struct result<This(Target, Source, Context)>
             : detail::result_of::target<Target>
         {};
 

Modified: trunk/boost/phoenix/object/static_cast.hpp
==============================================================================
--- trunk/boost/phoenix/object/static_cast.hpp (original)
+++ trunk/boost/phoenix/object/static_cast.hpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -29,7 +29,7 @@
         struct result;
 
         template <typename This, typename Target, typename Source, typename Context>
- struct result<This(Target const &, Source const&, Context)>
+ struct result<This(Target, Source, Context)>
             : detail::result_of::target<Target>
         {};
 

Modified: trunk/libs/phoenix/test/Jamfile
==============================================================================
--- trunk/libs/phoenix/test/Jamfile (original)
+++ trunk/libs/phoenix/test/Jamfile 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -117,6 +117,7 @@
     [ run regression/bug4853.cpp ]
     [ run regression/bug5626.cpp ]
     [ run regression/bug5968.cpp ]
+ [ run regression/bug6040.cpp ]
     ;
 
 test-suite phoenix_include :

Added: trunk/libs/phoenix/test/regression/bug6040.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/phoenix/test/regression/bug6040.cpp 2011-10-20 09:41:39 EDT (Thu, 20 Oct 2011)
@@ -0,0 +1,14 @@
+#include <boost/phoenix.hpp>
+#include <vector>
+#include <algorithm>
+#include <sstream>
+
+int main()
+{
+ std::vector<unsigned char> data;
+ using boost::phoenix::arg_names::_1;
+ using boost::phoenix::static_cast_;
+ std::ostringstream oss;
+ oss << std::hex;
+ std::for_each(data.begin(),data.end(), static_cast_<unsigned int>(_1) );
+}


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