Tanzinul Islam 7f9a618b8c Fix BOOST_STATIC_ASSERT with template arguments
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 ) \
      |
```
2019-10-25 15:18:24 +01:00
2019-10-16 00:20:58 +03:00
2014-08-21 20:30:29 +01:00
2018-01-15 19:37:16 +02:00
2019-10-11 15:36:51 +03:00
2019-05-05 04:46:43 +03:00

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 
S
Description
Boost Endian library
Readme
1.4 MiB
Languages
C++ 98.1%
CMake 1%
Batchfile 0.5%
Shell 0.3%
HTML 0.1%