mortoray.com
Why a ‘constexpr’ is just a return statement
A question recently asked why a ‘constexpr’ function in C++ may comprise only a return statement. It’s a good question. On quick glance the restriction seems somewhat arbitrary, a…