[fusion.adapted.std_tuple] bug
Looks like 2 files share the same include guard macro definitions. This makes it very hard to use Boost.Fusion for std::tuple's, especially if both boost::tuple and std::tuple need to be adapted. mbpro:fusion huil$ find . -type f |xargs grep -w BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726 ./adapted/boost_tuple/detail/category_of_impl.hpp:#if !defined(BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726) ./adapted/boost_tuple/detail/category_of_impl.hpp:#define BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726 ./adapted/std_tuple/detail/category_of_impl.hpp:#if !defined(BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726) ./adapted/std_tuple/detail/category_of_impl.hpp:#define BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726
On 12/02/2014 10:11 p.m., Hui Li wrote:
Looks like 2 files share the same include guard macro definitions. This makes it very hard to use Boost.Fusion for std::tuple's, especially if both boost::tuple and std::tuple need to be adapted.
mbpro:fusion huil$ find . -type f |xargs grep -w BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726 ./adapted/boost_tuple/detail/category_of_impl.hpp:#if !defined(BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726) ./adapted/boost_tuple/detail/category_of_impl.hpp:#define BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726 ./adapted/std_tuple/detail/category_of_impl.hpp:#if !defined(BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726) ./adapted/std_tuple/detail/category_of_impl.hpp:#define BOOST_FUSION_CATEGORY_OF_IMPL_09272006_0726
This is a known issue, already fixed on trunk a while ago. The fix didn't make it into master. See https://svn.boost.org/trac/boost/ticket/8418 for a patch. Regards, -- Agustín K-ballo Bergé.- http://talesofcpp.fusionfenix.com
participants (2)
-
Agustín K-ballo Bergé
-
Hui Li