Hello!
I tried to compile simple app with only included qcustomplot.h and qcustomplot.cpp in my environment VS2010 and Qt 5.0.1 but get the following error:
qcustomplot.cpp
1>qcustomplot.cpp(915): error C2664: 'QWeakPointer<T>::QWeakPointer(const QWeakPointer<T> &)' : cannot convert parameter 1 from 'QCPLayerable *' to 'const QWeakPointer<T> &'
1> with
1> [
1> T=QCPLayerable
1> ]
1> Reason: cannot convert from 'QCPLayerable *' to 'const QWeakPointer<T>'
1> with
1> [
1> T=QCPLayerable
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous
1>qcustomplot.cpp(1093): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'QCPLayerable *' (or there is no acceptable conversion)
1> C:\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtCore/qsharedpointer_impl.h(550): could be 'QWeakPointer<T> &QWeakPointer<T>::operator =(const QWeakPointer<T> &)'
1> with
1> [
1> T=QCPLayerable
1> ]
1> C:\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtCore/qsharedpointer_impl.h(558): or 'QWeakPointer<T> &QWeakPointer<T>::operator =(const QSharedPointer<T> &)'
1> with
1> [
1> T=QCPLayerable
1> ]
1> while trying to match the argument list '(QWeakPointer<T>, QCPLayerable *)'
1> with
1> [
1> T=QCPLayerable
1> ]
With best regards, Serg