
10 Sep
2025
10 Sep
'25
3:26 p.m.
Vinnie Falco wrote:
On Wed, Sep 10, 2025 at 8:08 AM Gennaro Prota via Boost < boost@lists.boost.org> wrote:
Hi everyone,
I was wondering if there's still any compiler among those generally supported by Boost which requires either BOOST_STATIC_ASSERT() or BOOST_STATIC_CONSTANT(). I'd like to get rid of them for DynamicBitset.
2-arg static_assert is available in C++11 and up.
If you want 1-arg static_assert in C++11 you need BOOST_STATIC_ASSERT.
For reference, I use BOOST_STATIC_ASSERT everywhere, as my libraries support C++11.
I define my own local macro and use that instead to avoid the dependency.