forked from boostorg/endian
7f9a618b8c461d71580f8c8de397d934b6000492
a2025a932 introduced a `BOOST_STATIC_ASSERT`-check with a template argument list. This causes a compilation error in a pre-C++11 compiler without support for variadic arguments (i.e. if `BOOST_NO_CXX11_VARIADIC_MACROS` is set).
For example:
$ echo '#include <boost/endian/buffers.hpp>' > test.cpp
$ g++ -c -std=c++03 -DBOOST_NO_CXX11_VARIADIC_MACROS -I/path/to/boost test.cpp
results in:
```
In file included from /path/to/boost/boost/endian/detail/endian_store.hpp:9,
from /path/to/boost/boost/endian/buffers.hpp:30,
from test.cpp:1:
/path/to/boost/boost/endian/detail/endian_reverse.hpp:111:76: error: macro "BOOST_STATIC_ASSERT" passed 2 arguments, but takes just 1
111 | BOOST_STATIC_ASSERT( is_integral<T>::value && !is_same<T, bool>::value );
| ^
In file included from /path/to/boost/boost/endian/detail/endian_reverse.hpp:13,
from /path/to/boost/boost/endian/detail/endian_store.hpp:9,
from /path/to/boost/boost/endian/buffers.hpp:30,
from test.cpp:1:
/path/to/boost/boost/static_assert.hpp:157: note: macro "BOOST_STATIC_ASSERT" defined here
157 | # define BOOST_STATIC_ASSERT( B ) \
|
```
Boost Endian library The Endian library is included in Boost release 1.58.0 and later. See http://boostorg.github.io/endian to browse the documentation without having to download the library or install Boost. To experiment with the Endian library, various other boost libraries must be available. So you need to install Boost or clone a current version of boostorg/boost if you have not already done so. Boost.Endian is a header-only library, so there is no need to run a build for it, although you may need to do a "b2 headers". If your clone of boost is already in place, please remember to: cd boost git pull git submodule update --init git submodule update ./b2 headers On Windows, "./" is unnecessary. --------------------------- Copyright Beman Dawes, 2013 Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt
Languages
C++
98.1%
CMake
1%
Batchfile
0.5%
Shell
0.3%
HTML
0.1%