libboost-static-assert

[brief]

Static assertions (compile time assertions)

The Boost StaticAssert library provides static assertions for C++, this library is the ancestor to C++ native static_assert's and can be used on older compilers which don't have that feature.

The full documentation is available on boost.org.

Support, bugs and feature requests

Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).

You can submit your changes through a pull request.

There is no mailing-list specific to Boost StaticAssert, although you can use the general-purpose Boost mailing-list using the tag [static_assert].

Development

Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):

git clone https://github.com/boostorg/boost
cd boost
git submodule update --init

The Boost StaticAssert Library is located in libs/static_assert/.

Running tests

First, make sure you are in libs/static_assert/test. You can either run all the tests listed in Jamfile.v2 or run a single test:

../../../b2                        <- run all tests
../../../b2 static_assert_test     <- single test
license BSL-1.0
project boost
url github.com/boostorg/static_assert
doc-url www.boost.org/doc/libs/1_85_0/libs/static_assert
topics C++Boost
5 Versions
version 1.85.0
repository https://pkg.cppget.org/1/stable
depends 1; libboost-config
reviews +1
version 1.83.0
repository https://pkg.cppget.org/1/stable
depends 1; libboost-config
reviews +1
version 1.81.0+1
repository https://pkg.cppget.org/1/stable
depends 1; libboost-config
reviews +1
version 1.78.0
repository https://pkg.cppget.org/1/legacy
depends 1; libboost-config
reviews +1
version 1.77.0+1
repository https://pkg.cppget.org/1/legacy
depends 1; libboost-config
reviews +1