Opened 6 years ago

Closed 5 years ago

#12212 closed Bugs (fixed)

type_traits/integral_constant.hpp, BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE and mpl/integral_c.hpp unhappy together

Reported by: lukester_null@… Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Hello

#define BOOST_MPL_CFG_NO_ADL_BARRIER_NAMESPACE
#include "boost/mpl/integral_c.hpp"
#include "boost/type_traits/integral_constant.hpp"

int main()
{
    return 0;
}
In file included from main.cpp:3:0:
boost/type_traits/integral_constant.hpp:42:21: error: 'integral_c' is already declared in this scope
       using ::mpl_::integral_c;
                     ^
boost/type_traits/integral_constant.hpp:43:21: error: 'integral_c_tag' is already declared in this scope
       using ::mpl_::integral_c_tag;

Due to the decoupling from mpl no doubt!

Regards

Luke Elliott

Change History (1)

comment:1 by John Maddock, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in develop, thanks.

Note: See TracTickets for help on using tickets.