unresolved symbols from value.cpp/.h

André Wöbbeking Woebbeking at onlinehome.de
Fri Feb 3 08:41:58 GMT 2006

On Thursday 02 February 2006 09:36, David Faure wrote:

> Don't make a new one, use Q_DISABLE_COPY().

From qglobal.h:

#if !defined(Q_NO_DECLARED_NOT_DEFINED) || !defined(QT_MAKEDLL)
 #define Q_DISABLE_COPY(Class) \
     Class(const Class &); \
     Class &operator=(const Class &);
 #define Q_DISABLE_COPY(Class)

On Windows Q_NO_DECLARED_NOT_DEFINED is defined, so Q_DISABLE_COPY does 
nothing and objects become copyable. When Q_DISABLE_COPY wouldn't be 
defined we've the same problem as before.

So boost::noncopyable is the only portable way to solve this.


More information about the kde-core-devel mailing list