|
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
calls?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net