
1 Jun
2016
1 Jun
'16
1:51 a.m.
On 2016-06-01 11:08, Howard Hinnant wrote:
... It has to be outlined, in the source.cpp: ... Book::~Book() = default; Book::Book() = default;
Uh, yes, indeed. I got it now. I'll adjust the wording in the docs. Somewhat off the topic. From efficiency point of view the above is identical to Book::~Book() {} or compiler writers do more magic with "=default"? I like "=default" as I feel it's cleaner language-wise. What weighty reason can I give to a beginner to prefer "=default" over {}... apart from "I am older, musclier and your boss" :-)