$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r55619 - in sandbox/pinhole: boost boost/pinhole boost/pinhole/detail libs/pinhole/test
From: jmcintyre_at_[hidden]
Date: 2009-08-17 01:42:23
Author: jared
Date: 2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
New Revision: 55619
URL: http://svn.boost.org/trac/boost/changeset/55619
Log:
Pinhole: cleanup defines and fix a couple of build issues under gcc.
Text files modified: 
   sandbox/pinhole/boost/pinhole.hpp                                  |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/action_info.hpp                      |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/category_iterator.hpp                |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/depth_first_iterator.hpp             |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/detail/depth_first_iterator_base.hpp |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/detail/path.hpp                      |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/detail/tokenizer.hpp                 |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/exceptions.hpp                       |    19 ++++++++++---------                     
   sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp          |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/path_filtered_iterator.hpp           |     4 ++--                                    
   sandbox/pinhole/boost/pinhole/property_group.hpp                   |    10 ++++++----                              
   sandbox/pinhole/boost/pinhole/property_info.hpp                    |    13 ++++++++-----                           
   sandbox/pinhole/boost/pinhole/property_manager.hpp                 |     4 ++--                                    
   sandbox/pinhole/libs/pinhole/test/Jamfile.v2                       |     2 +-                                      
   14 files changed, 45 insertions(+), 39 deletions(-)
Modified: sandbox/pinhole/boost/pinhole.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole.hpp	(original)
+++ sandbox/pinhole/boost/pinhole.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PROPERTY_PINHOLE
-#define BOOST_PROPERTY_PINHOLE
+#ifndef BOOST_PINHOLE
+#define BOOST_PINHOLE
 
 #include "pinhole/property_group.hpp"
 #include "pinhole/value.hpp"
Modified: sandbox/pinhole/boost/pinhole/action_info.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/action_info.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/action_info.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_DETAILS_ACTION_INFO
-#define BOOST_DETAILS_ACTION_INFO
+#ifndef BOOST_PINHOLE_ACTION_INFO
+#define BOOST_PINHOLE_ACTION_INFO
 
 #if defined(BOOST_MSVC)
     #pragma warning(push)
Modified: sandbox/pinhole/boost/pinhole/category_iterator.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/category_iterator.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/category_iterator.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_CATEGORY_ITERATOR
-#define BOOST_CATEGORY_ITERATOR
+#ifndef BOOST_PINHOLE_CATEGORY_ITERATOR
+#define BOOST_PINHOLE_CATEGORY_ITERATOR
 
 #include <exception>
 #include <stdexcept>
Modified: sandbox/pinhole/boost/pinhole/depth_first_iterator.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/depth_first_iterator.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/depth_first_iterator.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_DEPTH_FIRST_ITERATOR
-#define BOOST_DEPTH_FIRST_ITERATOR
+#ifndef BOOST_PINHOLE_DEPTH_FIRST_ITERATOR
+#define BOOST_PINHOLE_DEPTH_FIRST_ITERATOR
 
 #include <string>
 #include "detail/depth_first_iterator_base.hpp"
Modified: sandbox/pinhole/boost/pinhole/detail/depth_first_iterator_base.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/detail/depth_first_iterator_base.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/detail/depth_first_iterator_base.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_DETAIL_DEPTH_FIRST_ITERATOR_BASE
-#define BOOST_DETAIL_DEPTH_FIRST_ITERATOR_BASE
+#ifndef BOOST_PINHOLE_DETAIL_DEPTH_FIRST_ITERATOR_BASE
+#define BOOST_PINHOLE_DETAIL_DEPTH_FIRST_ITERATOR_BASE
 
 #include <exception>
 #include <stdexcept>
Modified: sandbox/pinhole/boost/pinhole/detail/path.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/detail/path.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/detail/path.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PINHOLE_PATH
-#define BOOST_PINHOLE_PATH
+#ifndef BOOST_PINHOLE_DETAIL_PATH
+#define BOOST_PINHOLE_DETAIL_PATH
 
 #include <vector>
 
Modified: sandbox/pinhole/boost/pinhole/detail/tokenizer.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/detail/tokenizer.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/detail/tokenizer.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PINHOLE_TOKENIZER
-#define BOOST_PINHOLE_TOKENIZER
+#ifndef BOOST_PINHOLE_DETAIL_TOKENIZER
+#define BOOST_PINHOLE_DETAIL_TOKENIZER
 
 #include <vector>
 #include "../exceptions.hpp"
Modified: sandbox/pinhole/boost/pinhole/exceptions.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/exceptions.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/exceptions.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_DETAIL_EXCEPTIONS
-#define BOOST_DETAIL_EXCEPTIONS
+#ifndef BOOST_PINHOLE_EXCEPTIONS
+#define BOOST_PINHOLE_EXCEPTIONS
 
 #include <exception>
 #include <stdexcept>
@@ -35,13 +35,14 @@
         public: no_metadata_defined() : runtime_error( "No metadata defined for property" ) {;}
     };
 
-    typedef boost::error_info< struct tag_requested_type, const std::string > exception_requested_type;
-    typedef boost::error_info< struct tag_property_name,  const std::string > exception_property_name;
-    typedef boost::error_info< struct tag_property_type,  const std::string > exception_property_type;
-    typedef boost::error_info< struct tag_actual_type,    const std::string > exception_actual_type;
-    typedef boost::error_info< struct tag_action_name,    const std::string > exception_action_name;
-    typedef boost::error_info< struct tag_path,           const std::string > exception_path;
-    typedef boost::error_info< struct tag_path_section,   const std::string > exception_path_section;
+    typedef ::boost::error_info< struct tag_additional_info, const std::string > exception_additional_info;
+    typedef ::boost::error_info< struct tag_requested_type,  const std::string > exception_requested_type;
+    typedef ::boost::error_info< struct tag_property_name,   const std::string > exception_property_name;
+    typedef ::boost::error_info< struct tag_property_type,   const std::string > exception_property_type;
+    typedef ::boost::error_info< struct tag_actual_type,     const std::string > exception_actual_type;
+    typedef ::boost::error_info< struct tag_action_name,     const std::string > exception_action_name;
+    typedef ::boost::error_info< struct tag_path,            const std::string > exception_path;
+    typedef ::boost::error_info< struct tag_path_section,    const std::string > exception_path_section;
 }}
 
 #endif // include guard
\ No newline at end of file
Modified: sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/map_key_value_iterators.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_MAP_KEY_VALUE_ITERATORS
-#define BOOST_MAP_KEY_VALUE_ITERATORS
+#ifndef BOOST_PINHOLE_MAP_KEY_VALUE_ITERATORS
+#define BOOST_PINHOLE_MAP_KEY_VALUE_ITERATORS
 
 #include <boost/iterator.hpp>
 #include <boost/iterator/iterator_adaptor.hpp>
Modified: sandbox/pinhole/boost/pinhole/path_filtered_iterator.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/path_filtered_iterator.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/path_filtered_iterator.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PATH_FILTERED_ITERATOR
-#define BOOST_PATH_FILTERED_ITERATOR
+#ifndef BOOST_PINHOLE_PATH_FILTERED_ITERATOR
+#define BOOST_PINHOLE_PATH_FILTERED_ITERATOR
 
 #include <string>
 #include "detail/depth_first_iterator_base.hpp"
Modified: sandbox/pinhole/boost/pinhole/property_group.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_group.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/property_group.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PROPERTY_GROUP
-#define BOOST_PROPERTY_GROUP
+#ifndef BOOST_PINHOLE_PROPERTY_GROUP
+#define BOOST_PINHOLE_PROPERTY_GROUP
 
 #include "types.hpp"
 #include "map_key_value_iterators.hpp"
@@ -336,7 +336,8 @@
                         return static_cast<detail::property_info<Return_Type>*>(propInfo)->getter();
                     }
                     
-                    throw ::boost::enable_error_info(std::bad_cast("Attempted to get a property using a type different from the properties type."))
+                    throw ::boost::enable_error_info(std::bad_cast())
+                                << ::boost::pinhole::exception_additional_info("Attempted to get a property using a type different from the properties type.")
                                 << ::boost::pinhole::exception_property_name(property)
                                 << ::boost::pinhole::exception_requested_type(typeid(Return_Type).name())
                                 << ::boost::pinhole::exception_property_type(propInfo->m_type.name());
@@ -373,7 +374,8 @@
                         return static_cast<detail::property_info<Set_Type>*>(propInfo)->setter(value);
                     }
                     
-                    throw ::boost::enable_error_info(std::bad_cast("Attempted to set a property using a type different from the properties type."))
+                    throw ::boost::enable_error_info(std::bad_cast())
+                            << ::boost::pinhole::exception_additional_info("Attempted to set a property using a type different from the properties type.")
                             << ::boost::pinhole::exception_property_name(property)
                             << ::boost::pinhole::exception_requested_type(typeid(Set_Type).name())
                             << ::boost::pinhole::exception_property_type(propInfo->m_type.name());
Modified: sandbox/pinhole/boost/pinhole/property_info.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_info.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/property_info.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,13 +5,14 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PROPERTY_INFO
-#define BOOST_PROPERTY_INFO
+#ifndef BOOST_PINHOLE_PROPERTY_INFO
+#define BOOST_PINHOLE_PROPERTY_INFO
 
 #if defined(BOOST_MSVC)
     #pragma warning(push)
     #pragma warning( disable: 4561 4793 )
 #endif
+#include "exceptions.hpp"
 #include <boost/type_traits.hpp>
 #include <boost/function.hpp>
 #include <boost/lexical_cast.hpp>
@@ -43,16 +44,18 @@
     template<typename String_Type, typename Value_Type>
     struct internal_string_set
     {
+        template<typename T> struct tag_requested_value;
+        
         template<typename Set_Type>
         inline void operator()( Set_Type setter, String_Type value )
         {
-            typedef boost::error_info< struct tag_requested_value, const String_Type > exception_requested_value;
+            typedef ::boost::error_info< struct tag_requested_value<String_Type>, const String_Type > exception_requested_value;
 
             try
             {
-                setter( boost::lexical_cast<Value_Type>(value) );
+                setter( ::boost::lexical_cast<Value_Type>(value) );
             }
-            catch(boost::bad_lexical_cast &)
+            catch(::boost::bad_lexical_cast &)
             {
                 throw ::boost::enable_error_info(std::invalid_argument("Could not convert string to the property's type."))
                             << exception_requested_value(value)
Modified: sandbox/pinhole/boost/pinhole/property_manager.hpp
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_manager.hpp	(original)
+++ sandbox/pinhole/boost/pinhole/property_manager.hpp	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -5,8 +5,8 @@
 // (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_PROPERTY_MANAGER
-#define BOOST_PROPERTY_MANAGER
+#ifndef BOOST_PINHOLE_PROPERTY_MANAGER
+#define BOOST_PINHOLE_PROPERTY_MANAGER
 
 #include "types.hpp"
 #include "exceptions.hpp"
Modified: sandbox/pinhole/libs/pinhole/test/Jamfile.v2
==============================================================================
--- sandbox/pinhole/libs/pinhole/test/Jamfile.v2	(original)
+++ sandbox/pinhole/libs/pinhole/test/Jamfile.v2	2009-08-17 01:42:21 EDT (Mon, 17 Aug 2009)
@@ -35,6 +35,6 @@
   [ run test_path_filtered_iterator.cpp ]
   [ run test_category_iterator.cpp ]
   [ run test_find.cpp  ]
-  [ run test_value.cpp  ]
+  #[ run test_value.cpp  ]
  ;
 }