Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78483 - in sandbox/type_erasure/boost/type_erasure: . detail
From: steven_at_[hidden]
Date: 2012-05-15 13:26:44


Author: steven_watanabe
Date: 2012-05-15 13:26:43 EDT (Tue, 15 May 2012)
New Revision: 78483
URL: http://svn.boost.org/trac/boost/changeset/78483

Log:
Make sure that include scanner finds construct.hpp.
Text files modified:
   sandbox/type_erasure/boost/type_erasure/any.hpp | 4 +---
   sandbox/type_erasure/boost/type_erasure/detail/construct.hpp | 15 +++++++++++++++
   2 files changed, 16 insertions(+), 3 deletions(-)

Modified: sandbox/type_erasure/boost/type_erasure/any.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/any.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/any.hpp 2012-05-15 13:26:43 EDT (Tue, 15 May 2012)
@@ -570,9 +570,7 @@
 
 #else
 
-#define BOOST_PP_FILENAME_1 <boost/type_erasure/detail/construct.hpp>
-#define BOOST_PP_ITERATION_LIMITS (1, BOOST_TYPE_ERASURE_MAX_ARITY)
-#include BOOST_PP_ITERATE()
+#include <boost/type_erasure/detail/construct.hpp>
 
 #endif
 

Modified: sandbox/type_erasure/boost/type_erasure/detail/construct.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/detail/construct.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/detail/construct.hpp 2012-05-15 13:26:43 EDT (Tue, 15 May 2012)
@@ -10,6 +10,19 @@
 
 // NO #include GUARD.
 
+#if !defined(BOOST_PP_IS_ITERATING)
+
+#ifndef BOOST_TYPE_ERASURE_DETAIL_CONSTRUCT_HPP_INCLUDED
+#define BOOST_TYPE_ERASURE_DETAIL_CONSTRUCT_HPP_INCLUDED
+
+#define BOOST_PP_FILENAME_1 <boost/type_erasure/detail/construct.hpp>
+#define BOOST_PP_ITERATION_LIMITS (1, BOOST_TYPE_ERASURE_MAX_ARITY)
+#include BOOST_PP_ITERATE()
+
+#endif
+
+#else
+
 #define N BOOST_PP_ITERATION()
 
 #if N > 1
@@ -104,3 +117,5 @@
     {}
 
 #undef N
+
+#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