From 094516d6869f272faa985d0387d49938a8a7d2b3 Mon Sep 17 00:00:00 2001 From: Lorenzo Caminiti Date: Wed, 11 Apr 2012 20:55:54 +0000 Subject: [PATCH] Added some tests to figure out pp problem with OverloadedFunciton on Sun. [SVN r77925] --- include/boost/functional/overloaded_function.hpp | 5 ++--- include/boost/functional/overloaded_function/detail/base.hpp | 4 +++- .../functional/overloaded_function/detail/function_type.hpp | 2 +- overloaded_function/test/identity.hpp | 2 +- overloaded_function/test/sun_bug.cpp | 3 ++- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/include/boost/functional/overloaded_function.hpp b/include/boost/functional/overloaded_function.hpp index 9e24e99..2ed228d 100644 --- a/include/boost/functional/overloaded_function.hpp +++ b/include/boost/functional/overloaded_function.hpp @@ -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 -//# include +# include +# include # include # include # include diff --git a/include/boost/functional/overloaded_function/detail/base.hpp b/include/boost/functional/overloaded_function/detail/base.hpp index 8fd9a0a..38083ed 100644 --- a/include/boost/functional/overloaded_function/detail/base.hpp +++ b/include/boost/functional/overloaded_function/detail/base.hpp @@ -10,7 +10,7 @@ # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_DETAIL_BASE_HPP_ # include -# include +/**@todo# include */ # include # include # include @@ -39,10 +39,12 @@ namespace boost { namespace overloaded_function_detail { template 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 diff --git a/include/boost/functional/overloaded_function/detail/function_type.hpp b/include/boost/functional/overloaded_function/detail/function_type.hpp index 0c28607..58bf09c 100644 --- a/include/boost/functional/overloaded_function/detail/function_type.hpp +++ b/include/boost/functional/overloaded_function/detail/function_type.hpp @@ -16,7 +16,7 @@ #include #include #include -#include +/** @todo #include */ #include #include #include diff --git a/overloaded_function/test/identity.hpp b/overloaded_function/test/identity.hpp index 755a6da..9b64da7 100644 --- a/overloaded_function/test/identity.hpp +++ b/overloaded_function/test/identity.hpp @@ -8,7 +8,7 @@ #ifndef IDENTITY_HPP_ #define IDENTITY_HPP_ -#include +/** @todo #include */ //[identity_typeof #include // No need to register `boost::function`. //] diff --git a/overloaded_function/test/sun_bug.cpp b/overloaded_function/test/sun_bug.cpp index 024d4b3..ac829b2 100644 --- a/overloaded_function/test/sun_bug.cpp +++ b/overloaded_function/test/sun_bug.cpp @@ -1,5 +1,6 @@ -#include +/**@todo remove this test */ +#include int main() { return 0; }