...

/

static_assert With No Message

static_assert With No Message

C++17 has built upon the previous functionality of 'static_assert' to provide a more convenient experience.

static_assert

This feature adds a new overload for static_assert. It enables you to have the condition inside static_assert without passing the message.

It will be compatible with other asserts like BOOST_STATIC_ASSERT. Programmers with boost experience will now have no trouble switching to C++17 static_assert.

static_assert(std::is_arithmetic_v<T>,
...