Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than the constructor would not already implicitly do.
In the second case, without them, the compiler will expect an implementation elsewhere - such as a .cpp file.
No comments:
Post a Comment