|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72488 - sandbox/assign_v2/boost/assign/v2/chain
From: erwann.rogard_at_[hidden]
Date: 2011-06-08 10:19:00
Author: e_r
Date: 2011-06-08 10:18:58 EDT (Wed, 08 Jun 2011)
New Revision: 72488
URL: http://svn.boost.org/trac/boost/changeset/72488
Log:
upd assign_v2
Added:
sandbox/assign_v2/boost/assign/v2/chain/operator.hpp (contents, props changed)
Removed:
sandbox/assign_v2/boost/assign/v2/chain/logical_and.hpp
Deleted: sandbox/assign_v2/boost/assign/v2/chain/logical_and.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/chain/logical_and.hpp 2011-06-08 10:18:58 EDT (Wed, 08 Jun 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// TODO remove file
\ No newline at end of file
Added: sandbox/assign_v2/boost/assign/v2/chain/operator.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/chain/operator.hpp 2011-06-08 10:18:58 EDT (Wed, 08 Jun 2011)
@@ -0,0 +1,41 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2009 Neil Groves //
+// Copyright (C) 2011 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_V2_CHAIN_OPERATOR_ER_2011_HPP
+#define BOOST_ASSIGN_V2_CHAIN_OPERATOR_ER_2011_HPP
+#include <boost/assign/v2/chain/meta.hpp>
+#include <boost/assign/v2/chain/chain.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+
+#define BOOST_ASSIGN_V2_MACRO(U1, U2) \
+template<typename R1, typename R2> \
+typename result_of::chain< \
+ U1,\
+ U2 \
+>::type \
+operator&&(U1& r1, U2 & r2) \
+{ \
+ return r1 | _chain( r2 ); \
+} \
+/**/
+BOOST_ASSIGN_V2_MACRO( R1 , R2 )
+BOOST_ASSIGN_V2_MACRO( R1 , R2 const )
+BOOST_ASSIGN_V2_MACRO( R1 const, R2 )
+BOOST_ASSIGN_V2_MACRO( R1 const, R2 const )
+#undef BOOST_ASSIGN_V2_MACRO
+
+}// v2
+}// assign
+}// boost
+
+#endif // BOOST_ASSIGN_V2_CHAIN_OPERATOR_AND_ER_2011_HPP
\ No newline at end of file
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