Pimpl copying
Peter Kümmel
syntheticpp at gmx.net
Fri Jul 14 17:09:24 BST 2006
André Wöbbeking wrote:
>
> Many pimpls were just changed to (nested) Private.
>
I'm not sure I understand. There was a discussion about the
naming and as I could remember "Private" was not the favorite
name.
>> +
>> +#define KDE_PIMPL_BASE_MACRO(COPY_ACCESS,X) \
>> +COPY_ACCESS: \
>> + X(const X##&); \
>> + X##& operator=(const X##&); \
>> +private: \
>> + class X##Private; \
>> + X##Private * const d;
>> +
>> +#define KDE_PIMPL_ENABLE_COPY(X) KDE_PIMPL_BASE_MACRO(public, X)
>> +#define KDE_PIMPL_DISABLE_COPY(X) KDE_PIMPL_BASE_MACRO(private,X)
>
> Does't KDE_PIMPL_DISABLE_COPY lead to unresolved smybols linking error
> with MSVC (see "unresolved symbols from value.cpp/.h" on k-c-d from
> 20.01.2006)?
Declaring as private should not lead to a linker error, but I've
not tested the mention case. Will have a look at it.
More information about the kde-core-devel
mailing list