Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67823 - in sandbox/statistics/support/boost/assign/v2/detail: config type_traits
From: erwann.rogard_at_[hidden]
Date: 2011-01-08 20:39:53


Author: e_r
Date: 2011-01-08 20:39:53 EST (Sat, 08 Jan 2011)
New Revision: 67823
URL: http://svn.boost.org/trac/boost/changeset/67823

Log:
addg to boost/assign/v2
Added:
   sandbox/statistics/support/boost/assign/v2/detail/config/borland_workaround.hpp (contents, props changed)
   sandbox/statistics/support/boost/assign/v2/detail/type_traits/or_const.hpp (contents, props changed)

Added: sandbox/statistics/support/boost/assign/v2/detail/config/borland_workaround.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/detail/config/borland_workaround.hpp 2011-01-08 20:39:53 EST (Sat, 08 Jan 2011)
@@ -0,0 +1,9 @@
+
+// Maybe needed for unit testing
+
+#include <boost/detail/workaround.hpp>
+
+#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
+# pragma warn -8091 // supress warning in Boost.Test
+# pragma warn -8057 // unused argument argc/argv in Boost.Test
+#endif

Added: sandbox/statistics/support/boost/assign/v2/detail/type_traits/or_const.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/detail/type_traits/or_const.hpp 2011-01-08 20:39:53 EST (Sat, 08 Jan 2011)
@@ -0,0 +1,37 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_OR_CONST_ER_2010_HPP
+#define BOOST_ASSIGN_V2_DETAIL_TYPE_TRAITS_OR_CONST_ER_2010_HPP
+#include <boost/mpl/or.hpp>
+#include <boost/mpl/bool.hpp>
+#include <boost/type_traits/is_const.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace type_traits{
+
+template<typename ...Args> struct or_const : boost::mpl::false_{};
+
+template<typename T, typename ...Args>
+struct or_const<T, Args...> : boost::mpl::or_<
+ boost::is_const<T>,
+ or_const<Args...>
+>{};
+
+template<typename T, typename ...Args>
+struct or_const<T const, Args...> : boost::mpl::true_{};
+
+}// type_traits
+}// v2
+}// assign
+}// boost
+
+#endif // BOOST_ASSIGN_V2_DETAIL_TYPE_TRAITS_OR_CONST_ER_2010_HPP


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