Boost logo

Boost :

Subject: Re: [boost] Pimpl Again?
From: Vladimir Batov (Vladimir.Batov_at_[hidden])
Date: 2016-05-31 21:51:29


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" :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk