Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77925 - in trunk: boost/functional boost/functional/overloaded_function/detail libs/functional/overloaded_function/test
From: lorcaminiti_at_[hidden]
Date: 2012-04-11 16:55:55


Author: lcaminiti
Date: 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
New Revision: 77925
URL: http://svn.boost.org/trac/boost/changeset/77925

Log:
Added some tests to figure out pp problem with OverloadedFunciton on Sun.
Text files modified:
   trunk/boost/functional/overloaded_function.hpp | 5 ++---
   trunk/boost/functional/overloaded_function/detail/base.hpp | 4 +++-
   trunk/boost/functional/overloaded_function/detail/function_type.hpp | 2 +-
   trunk/libs/functional/overloaded_function/test/identity.hpp | 2 +-
   trunk/libs/functional/overloaded_function/test/sun_bug.cpp | 3 ++-
   5 files changed, 9 insertions(+), 7 deletions(-)

Modified: trunk/boost/functional/overloaded_function.hpp
==============================================================================
--- trunk/boost/functional/overloaded_function.hpp (original)
+++ trunk/boost/functional/overloaded_function.hpp 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
@@ -11,9 +11,8 @@
 # ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_HPP_
 # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_HPP_
 
-/** @todo[Lorenzo Caminiti] Uncomment this... trying to see what breaks on Sun */
-//# include <boost/functional/overloaded_function/detail/base.hpp>
-//# include <boost/functional/overloaded_function/detail/function_type.hpp>
+# include <boost/functional/overloaded_function/detail/base.hpp>
+# include <boost/functional/overloaded_function/detail/function_type.hpp>
 # include <boost/functional/overloaded_function/config.hpp>
 # include <boost/typeof/typeof.hpp>
 # include <boost/preprocessor/iteration/iterate.hpp>

Modified: trunk/boost/functional/overloaded_function/detail/base.hpp
==============================================================================
--- trunk/boost/functional/overloaded_function/detail/base.hpp (original)
+++ trunk/boost/functional/overloaded_function/detail/base.hpp 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
@@ -10,7 +10,7 @@
 # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_DETAIL_BASE_HPP_
 
 # include <boost/functional/overloaded_function/config.hpp>
-# include <boost/function.hpp>
+/**@todo# include <boost/function.hpp>*/
 # include <boost/preprocessor/iteration/iterate.hpp>
 # include <boost/preprocessor/repetition/enum.hpp>
 # include <boost/preprocessor/cat.hpp>
@@ -39,10 +39,12 @@
 template<typename F>
 class base {}; // Empty template cannot be used directly (only its spec).
 
+/*@todo
 # define BOOST_PP_ITERATION_PARAMS_1 \
                 (3, (0, BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX, \
                 "boost/functional/overloaded_function/detail/base.hpp"))
 # include BOOST_PP_ITERATE() // Iterate over funciton arity.
+*/
 
 } } // namespace
 

Modified: trunk/boost/functional/overloaded_function/detail/function_type.hpp
==============================================================================
--- trunk/boost/functional/overloaded_function/detail/function_type.hpp (original)
+++ trunk/boost/functional/overloaded_function/detail/function_type.hpp 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
@@ -16,7 +16,7 @@
 #include <boost/function_types/result_type.hpp>
 #include <boost/type_traits/remove_pointer.hpp>
 #include <boost/type_traits/remove_reference.hpp>
-#include <boost/function.hpp>
+/** @todo #include <boost/function.hpp>*/
 #include <boost/mpl/if.hpp>
 #include <boost/mpl/identity.hpp>
 #include <boost/mpl/pop_front.hpp>

Modified: trunk/libs/functional/overloaded_function/test/identity.hpp
==============================================================================
--- trunk/libs/functional/overloaded_function/test/identity.hpp (original)
+++ trunk/libs/functional/overloaded_function/test/identity.hpp 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
@@ -8,7 +8,7 @@
 #ifndef IDENTITY_HPP_
 #define IDENTITY_HPP_
 
-#include <boost/function.hpp>
+/** @todo #include <boost/function.hpp> */
 //[identity_typeof
 #include <boost/typeof/std/string.hpp> // No need to register `boost::function`.
 //]

Modified: trunk/libs/functional/overloaded_function/test/sun_bug.cpp
==============================================================================
--- trunk/libs/functional/overloaded_function/test/sun_bug.cpp (original)
+++ trunk/libs/functional/overloaded_function/test/sun_bug.cpp 2012-04-11 16:55:54 EDT (Wed, 11 Apr 2012)
@@ -1,5 +1,6 @@
 
-#include <boost/functional/overloaded_function/detail/base.hpp>
+/**@todo remove this test */
+#include <boost/functional/overloaded_function.hpp>
 
 int main() { return 0; }
 


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