From cf0abee611830955c3985a536a454b531457c48b Mon Sep 17 00:00:00 2001 From: Menelaos Karavelas Date: Mon, 21 Apr 2014 00:04:49 +0300 Subject: [PATCH] [typeof][msvc-8.0] bug fix related to problem with included version of Boost.Test on msvc-8.0; when both boost/utility/enable_if.hpp and boost/test/included/unit_test.hpp are included, msvc-8.0 cannot figure out whether the enable_if and disable_if used in te typeof implementation for msvc-8.0 is that in the boost namespace or that in the boost::unit_test::decorator namespace; solution: explicitly qualify enable_if and disable_if with the boost namespace. --- include/boost/typeof/msvc/typeof_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/typeof/msvc/typeof_impl.hpp b/include/boost/typeof/msvc/typeof_impl.hpp index 3071efb7..72e65152 100644 --- a/include/boost/typeof/msvc/typeof_impl.hpp +++ b/include/boost/typeof/msvc/typeof_impl.hpp @@ -168,11 +168,11 @@ namespace boost { typedef char(*type)[encode_type::value]; }; - template typename disable_if< + template typename boost::disable_if< typename is_function::type, typename sizer::type>::type encode_start(T const&); - template typename enable_if< + template typename boost::enable_if< typename is_function::type, typename sizer::type>::type encode_start(T&); template