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?
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?