Boost logo

Boost Users :

Subject: Re: [Boost-users] Pimpl framework comments/suggestions
From: Clinton Mead (clintonmead_at_[hidden])
Date: 2011-04-17 21:10:33

> Isn't this much simpler and more natural for the user:
> unique_ptr<Klass> foo(new Klass);
It is, but doesn't this require Klass here to be a complete type? Is Klass
the interface or the implementation?

If Klass is the implementation, how does this hide the implementation?

And if Klass is the interface, won't it need to contain another pointer,
which would result in following two pointers instead of one for all method

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at