Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66532 - in sandbox/statistics/support/boost/assign/v2/detail: checking type_traits
From: erwann.rogard_at_[hidden]
Date: 2010-11-12 11:06:36


Author: e_r
Date: 2010-11-12 11:06:33 EST (Fri, 12 Nov 2010)
New Revision: 66532
URL: http://svn.boost.org/trac/boost/changeset/66532

Log:
adding files to /boost/assign/v2/detail
Added:
   sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp (contents, props changed)
   sandbox/statistics/support/boost/assign/v2/detail/checking/checking.hpp (contents, props changed)
   sandbox/statistics/support/boost/assign/v2/detail/type_traits/same_remove_cv.hpp (contents, props changed)

Added: sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/check_convert.hpp 2010-11-12 11:06:33 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,19 @@
+#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
+
+// TODO find out why c++0x won't allow to = from;
+// Usage:
+// using checking::container; // or maybe checking::array
+// BOOST_ASSIGN_V2_check_convert
+
+#ifndef BOOST_ASSIGN_V2_check_convert
+#if BOOST_ASSIGN_V2_ENABLE_CPP0X
+#define BOOST_ASSIGN_V2_check_convert do_check( from.convert<to_>() );
+#else
+#define BOOST_ASSIGN_V2_check_convert \
+ do_check( from.convert<to_>() ); \
+ to_ to; to = from; \
+ do_check( to ); \
+/**/
+#endif
+#endif
+

Added: sandbox/statistics/support/boost/assign/v2/detail/checking/checking.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/detail/checking/checking.hpp 2010-11-12 11:06:33 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,25 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 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_DETAIL_CHECKING_CHECKING_ER_2010_HPP
+#define BOOST_ASSIGN_V2_DETAIL_CHECKING_CHECKING_ER_2010_HPP
+
+#include <boost/assign/v2/detail/checking/array.hpp>
+#include <boost/assign/v2/detail/checking/assert.hpp>
+#include <boost/assign/v2/detail/checking/check_equal.hpp>
+#include <boost/assign/v2/detail/checking/container.hpp>
+#include <boost/assign/v2/detail/checking/constants.hpp>
+#include <boost/assign/v2/detail/checking/deduce_check.hpp>
+#include <boost/assign/v2/detail/checking/fifo.hpp>
+#include <boost/assign/v2/detail/checking/lifo.hpp>
+#include <boost/assign/v2/detail/checking/map.hpp>
+#include <boost/assign/v2/detail/checking/range.hpp>
+#include <boost/assign/v2/detail/checking/relational_op.hpp>
+
+#endif

Added: sandbox/statistics/support/boost/assign/v2/detail/type_traits/same_remove_cv.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/detail/type_traits/same_remove_cv.hpp 2010-11-12 11:06:33 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,32 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 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_DETAIL_TYPE_TRAITS_SAME_REMOVE_CV_ER_2010_HPP
+#define BOOST_ASSIGN_V2_DETAIL_TYPE_TRAITS_SAME_REMOVE_CV_ER_2010_HPP
+#include <boost/type_traits/is_same.hpp>
+#include <boost/type_traits/remove_cv.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace type_traits{
+
+ template<typename T,typename U>
+ struct same_remove_cv : boost::is_same<
+ typename boost::remove_cv<T>::type,
+ typename boost::remove_cv<U>::type
+ >{};
+
+}// type_traits
+}// v2
+}// assign
+}// boost
+
+#endif
+


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