16 Oct
2021
16 Oct
'21
7:16 p.m.
Glen Fernandes wrote:
On Sat, Oct 16, 2021 at 2:19 PM John Maddock wrote:
This is fine by me, I imagine that Boost.StaticAssert is rapidly becoming obsolete anyway?
Not everyone is on C++17 to use static_assert(expr), so even C++11 and C++14 Boost libraries (and some Boost users) choose BOOST_STATIC_ASSERT(expr) over having to static_assert(expr, "expr") etc.
That's true, but the implementation can be simplified considerably if C++11 can be assumed. :-)