mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 12:07:36 +02:00
Added workaround for GCC 3.4 due to ambiguous.
NOTE: GCC 3.3 and earlier are not supported officially by Boost community.
This commit is contained in:
@ -8,6 +8,14 @@
|
||||
#define FUSION_CONVERT_10022005_1442
|
||||
|
||||
#include <boost/fusion/support/config.hpp>
|
||||
#if BOOST_WORKAROUND(BOOST_GCC, < 30500)
|
||||
#include <boost/core/enable_if.hpp>
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#define BOOST_FUSION_WA_GCC34(type1, type2) \
|
||||
boost::lazy_disable_if<boost::is_const<Sequence>, type1, type2>
|
||||
#else
|
||||
#define BOOST_FUSION_WA_GCC34(type1, type2) type1, type2
|
||||
#endif
|
||||
|
||||
namespace boost { namespace fusion
|
||||
{
|
||||
@ -32,7 +40,7 @@ namespace boost { namespace fusion
|
||||
|
||||
template <typename Tag, typename Sequence>
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::convert<Tag, Sequence>::type
|
||||
inline typename BOOST_FUSION_WA_GCC34(result_of::convert<Tag, Sequence>)::type
|
||||
convert(Sequence& seq)
|
||||
{
|
||||
typedef typename result_of::convert<Tag, Sequence>::gen gen;
|
||||
@ -49,4 +57,5 @@ namespace boost { namespace fusion
|
||||
}
|
||||
}}
|
||||
|
||||
#undef BOOST_FUSION_WA_GCC34
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user