Should I mark a compiler-generated constructor as constexpr?

Viewed 2035

Is there a difference between doing:

X() = default;

and

constexpr X() = default;

Default-constructing the class within constant expressions work fine, so is there a difference between these two examples? Should I use one over the other?

1 Answers
Related