boostorg / spirit

Boost.org spirit module
http://boost.org/libs/spirit
392 stars 161 forks source link

warning: 'BOOST_ENDIAN_DEFAULT_CONSTRUCT' macro redefined #348

Closed redboltz closed 5 years ago

redboltz commented 6 years ago

When I include both boost/spirit/include/qi.hpp and boost/endian/buffers.hpp, I got warning: 'BOOST_ENDIAN_DEFAULT_CONSTRUCT' macro redefined.

#include <boost/spirit/include/qi.hpp>
#include <boost/endian/buffers.hpp>

int main() {
}

https://wandbox.org/permlink/lwc8uW2Giwr3CWO7

It seems that the macro should be defined appropriate point, but I'm not sure where is it.

I found the issue Boost 1.66.0 (current release).

Kojoley commented 6 years ago

Should be fixed in #349.