Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53751 - in trunk: boost/concept boost/concept/detail libs/concept_check
From: dave_at_[hidden]
Date: 2009-06-08 10:41:17


Author: dave
Date: 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
New Revision: 53751
URL: http://svn.boost.org/trac/boost/changeset/53751

Log:
concept:: => concepts:: fixes #865
Added:
   trunk/boost/concept/detail/backward_compatibility.hpp (contents, props changed)
Text files modified:
   trunk/boost/concept/detail/borland.hpp | 5 +++--
   trunk/boost/concept/detail/general.hpp | 9 +++++----
   trunk/boost/concept/detail/has_constraints.hpp | 6 ++++--
   trunk/boost/concept/detail/msvc.hpp | 7 ++++---
   trunk/boost/concept/usage.hpp | 7 ++++---
   trunk/libs/concept_check/concept_check.htm | 2 +-
   6 files changed, 21 insertions(+), 15 deletions(-)

Added: trunk/boost/concept/detail/backward_compatibility.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/concept/detail/backward_compatibility.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -0,0 +1,16 @@
+// Copyright David Abrahams 2009. Distributed under 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_CONCEPT_BACKWARD_COMPATIBILITY_DWA200968_HPP
+# define BOOST_CONCEPT_BACKWARD_COMPATIBILITY_DWA200968_HPP
+
+namespace boost
+{
+ namespace concepts {}
+
+# if !defined(BOOST_NO_CONCEPTS) && !defined(BOOST_CONCEPT_NO_BACKWARD_KEYWORD)
+ namespace concept = concepts;
+# endif
+} // namespace boost::concept
+
+#endif // BOOST_CONCEPT_BACKWARD_COMPATIBILITY_DWA200968_HPP

Modified: trunk/boost/concept/detail/borland.hpp
==============================================================================
--- trunk/boost/concept/detail/borland.hpp (original)
+++ trunk/boost/concept/detail/borland.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -5,8 +5,9 @@
 # define BOOST_CONCEPT_DETAIL_BORLAND_DWA2006429_HPP
 
 # include <boost/preprocessor/cat.hpp>
+# include <boost/concept/detail/backward_compatibility.hpp>
 
-namespace boost { namespace concept {
+namespace boost { namespace concepts {
 
 template <class ModelFnPtr>
 struct require;
@@ -21,7 +22,7 @@
   enum \
   { \
       BOOST_PP_CAT(boost_concept_check,__LINE__) = \
- boost::concept::require<ModelFnPtr>::instantiate \
+ boost::concepts::require<ModelFnPtr>::instantiate \
   }
 
 }} // namespace boost::concept

Modified: trunk/boost/concept/detail/general.hpp
==============================================================================
--- trunk/boost/concept/detail/general.hpp (original)
+++ trunk/boost/concept/detail/general.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -5,6 +5,7 @@
 # define BOOST_CONCEPT_DETAIL_GENERAL_DWA2006429_HPP
 
 # include <boost/preprocessor/cat.hpp>
+# include <boost/concept/detail/backward_compatibility.hpp>
 
 # ifdef BOOST_OLD_CONCEPT_SUPPORT
 # include <boost/concept/detail/has_constraints.hpp>
@@ -13,7 +14,7 @@
 
 // This implementation works on Comeau and GCC, all the way back to
 // 2.95
-namespace boost { namespace concept {
+namespace boost { namespace concepts {
 
 template <class ModelFn>
 struct requirement_;
@@ -48,7 +49,7 @@
 template <class Model>
 struct requirement_<void(*)(Model)>
   : mpl::if_<
- concept::not_satisfied<Model>
+ concepts::not_satisfied<Model>
       , constraint<Model>
       , requirement<failed ************ Model::************>
>::type
@@ -65,8 +66,8 @@
 # endif
 
 # define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
- typedef ::boost::concept::detail::instantiate< \
- &::boost::concept::requirement_<ModelFnPtr>::failed> \
+ typedef ::boost::concepts::detail::instantiate< \
+ &::boost::concepts::requirement_<ModelFnPtr>::failed> \
       BOOST_PP_CAT(boost_concept_check,__LINE__)
 
 }}

Modified: trunk/boost/concept/detail/has_constraints.hpp
==============================================================================
--- trunk/boost/concept/detail/has_constraints.hpp (original)
+++ trunk/boost/concept/detail/has_constraints.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -6,7 +6,9 @@
 
 # include <boost/mpl/bool.hpp>
 # include <boost/detail/workaround.hpp>
-namespace boost { namespace concept {
+# include <boost/concept/detail/backward_compatibility.hpp>
+
+namespace boost { namespace concepts {
 
 namespace detail
 {
@@ -43,6 +45,6 @@
     typedef mpl::bool_<value> type;
 };
 
-}} // namespace boost::concept::detail
+}} // namespace boost::concepts::detail
 
 #endif // BOOST_CONCEPT_DETAIL_HAS_CONSTRAINTS_DWA2006429_HPP

Modified: trunk/boost/concept/detail/msvc.hpp
==============================================================================
--- trunk/boost/concept/detail/msvc.hpp (original)
+++ trunk/boost/concept/detail/msvc.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -5,6 +5,7 @@
 # define BOOST_CONCEPT_CHECK_MSVC_DWA2006429_HPP
 
 # include <boost/preprocessor/cat.hpp>
+# include <boost/concept/detail/backward_compatibility.hpp>
 
 # ifdef BOOST_OLD_CONCEPT_SUPPORT
 # include <boost/concept/detail/has_constraints.hpp>
@@ -12,7 +13,7 @@
 # endif
 
 
-namespace boost { namespace concept {
+namespace boost { namespace concepts {
 
 
 template <class Model>
@@ -91,7 +92,7 @@
 enum \
 { \
     BOOST_PP_CAT(boost_concept_check,__LINE__) = \
- sizeof(::boost::concept::require<ModelFnPtr>) \
+ sizeof(::boost::concepts::require<ModelFnPtr>) \
 }
   
 # else // Not vc-7.1
@@ -104,7 +105,7 @@
 enum \
 { \
     BOOST_PP_CAT(boost_concept_check,__LINE__) = \
- sizeof(::boost::concept::require_((ModelFnPtr)0)) \
+ sizeof(::boost::concepts::require_((ModelFnPtr)0)) \
 }
   
 # endif

Modified: trunk/boost/concept/usage.hpp
==============================================================================
--- trunk/boost/concept/usage.hpp (original)
+++ trunk/boost/concept/usage.hpp 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -6,8 +6,9 @@
 
 # include <boost/concept/assert.hpp>
 # include <boost/detail/workaround.hpp>
+# include <boost/concept/detail/backward_compatibility.hpp>
 
-namespace boost { namespace concept {
+namespace boost { namespace concepts {
 
 # if BOOST_WORKAROUND(__GNUC__, == 2)
 
@@ -25,13 +26,13 @@
 
 # define BOOST_CONCEPT_USAGE(model) \
       model(); /* at least 2.96 and 3.4.3 both need this :( */ \
- BOOST_CONCEPT_ASSERT((boost::concept::usage_requirements<model>)); \
+ BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \
       ~model()
 
 # else
 
 # define BOOST_CONCEPT_USAGE(model) \
- BOOST_CONCEPT_ASSERT((boost::concept::usage_requirements<model>)); \
+ BOOST_CONCEPT_ASSERT((boost::concepts::usage_requirements<model>)); \
       ~model()
 
 # endif

Modified: trunk/libs/concept_check/concept_check.htm
==============================================================================
--- trunk/libs/concept_check/concept_check.htm (original)
+++ trunk/libs/concept_check/concept_check.htm 2009-06-08 10:41:16 EDT (Mon, 08 Jun 2009)
@@ -250,7 +250,7 @@
 boost/concept_check.hpp: In destructor ‘boost::LessThanComparable&lt;TT&gt;::~
   LessThanComparable() [with TT = std::complex&lt;float&gt;]’:
 boost/concept/detail/general.hpp:29: instantiated from ‘static void boost::
- concept::requirement&lt;Model&gt;::failed() [with Model = boost::
+ concepts::requirement&lt;Model&gt;::failed() [with Model = boost::
   LessThanComparable&lt;std::complex&lt;float&gt; &gt;]’
 boost/concept/requires.hpp:30: instantiated from ‘boost::_requires_&lt;void
   (*)(boost::LessThanComparable&lt;std::complex&lt;float&gt; &gt;)&gt;’


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