|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72505 - in sandbox/assign_v2/boost/assign/v2: deque/cpp03 support/traits/aux_
From: erwann.rogard_at_[hidden]
Date: 2011-06-09 08:29:25
Author: e_r
Date: 2011-06-09 08:29:24 EDT (Thu, 09 Jun 2011)
New Revision: 72505
URL: http://svn.boost.org/trac/boost/changeset/72505
Log:
upd assign_v2
Text files modified:
sandbox/assign_v2/boost/assign/v2/deque/cpp03/csv_deque_basic.hpp | 6 ++--
sandbox/assign_v2/boost/assign/v2/support/traits/aux_/fwd_container.hpp | 52 ++++++---------------------------------
2 files changed, 12 insertions(+), 46 deletions(-)
Modified: sandbox/assign_v2/boost/assign/v2/deque/cpp03/csv_deque_basic.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/deque/cpp03/csv_deque_basic.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/deque/cpp03/csv_deque_basic.hpp 2011-06-09 08:29:24 EDT (Thu, 09 Jun 2011)
@@ -52,11 +52,11 @@
)
#undef BOOST_ASSIGN_V2_CSV_DEQUE_OVERLOAD_BASIC
-#define BOOST_ASSIGN_V2_MACRO(z, i, data) const T& BOOST_PP_CAT(_,i)
+#define BOOST_ASSIGN_V2_MACRO(z, i, is_const) BOOST_PP_EXPR_IF(is_const, const) T& BOOST_PP_CAT(_,i)
#define BOOST_ASSIGN_V2_CSV_DEQUE_OVERLOAD_BASIC_IMPLICIT(z, N, is_const)\
template<typename T, typename Options>\
typename result_of::csv_deque_option<T, Options>::type\
- csv_deque( BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO, ~) )\
+ csv_deque( BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO, is_const) )\
{\
typedef typename csv_deque_deduce_value<T>::type t_;\
return csv(\
@@ -66,7 +66,7 @@
}\
template<typename T>\
typename result_of::csv_deque<T>::type\
- csv_deque( BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO, ~) )\
+ csv_deque( BOOST_PP_ENUM(N, BOOST_ASSIGN_V2_MACRO, is_const) )\
{\
typedef typename csv_deque_deduce_value<T>::type t_;\
return csv( deque<t_>( _nil ), BOOST_PP_ENUM_PARAMS(N, _) );\
Modified: sandbox/assign_v2/boost/assign/v2/support/traits/aux_/fwd_container.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/support/traits/aux_/fwd_container.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/support/traits/aux_/fwd_container.hpp 2011-06-09 08:29:24 EDT (Thu, 09 Jun 2011)
@@ -11,8 +11,9 @@
#define BOOST_ASSIGN_V2_SUPPORT_TRAITS_AUX_FWD_CONTAINER_ER_2011_HPP
#include <cstddef>
-// Consider this as partial replacement (not complete)
-// #include <boost/detail/container_fwd.hpp>
+// TODO include fwd headers as they become available
+// This does not seem comprehensive, yet:
+// http://svn.boost.org/svn/boost/trunk/boost/detail/container_fwd.hpp
namespace std{
@@ -39,63 +40,28 @@
}// std
+// http://www.boost.org/doc/libs/1_46_1/boost/circular_buffer_fwd.hpp
#include <boost/circular_buffer_fwd.hpp>
+
+// http://svn.boost.org/svn/boost/trunk/boost/unordered/unordered_map_fwd.hpp
#include <boost/unordered/unordered_map_fwd.hpp>
+
+// http://svn.boost.org/svn/boost/trunk/boost/unordered/unordered_set_fwd.hpp
#include <boost/unordered/unordered_set_fwd.hpp>
-// Include fwd headers as they become available
namespace boost{
// http://www.boost.org/doc/libs/release/doc/html/array.html
template<typename T, std::size_t size> class array;
- // http://www.boost.org/doc/libs/release/libs/circular_buffer/index.html
- //template<typename T, typename Alloc> class circular_buffer;
-
namespace detail{
namespace multi_array{
- struct multi_array_base;
+ class multi_array_base;
}// multi_array
}// detail
-/*
- template <
- class Key,
- class Hash,
- class Pred,
- class Alloc
- >
- class unordered_set;
-
- template <
- class Key,
- class Mapped,
- class Hash,
- class Pred,
- class Alloc
- >
- class unordered_map;
-
- template<
- class Key,
- class Mapped,
- class Hash,
- class Pred,
- class Alloc
- >
- class unordered_multimap;
-
- template<
- class Key,
- class Hash,
- class Pred,
- class Alloc
- >
- class unordered_multiset;
-*/
-
// POINTER-CONTAINERS
template
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