I get a Clang 3.8 compiler error and GCC 5.3 if I want to declare my default constructors defaultas constexpr. According to this stackoverflow question, it should work fine:
struct A
{
constexpr A() = default;
int x;
};
However:
Error: defaulted definition of default constructor is not constexpr
Do you have any clue what is really going on?
source
share