Y
yomgui
Hi,
The following code compiles on Unix but refuse to do so with devstudio6
can anyone help me to get it right ? (ie for visual studio)
template <class T> class AutoPtr
{
public:
/** Default constructor. */
AutoPtr(T* p = 0);
/** Copy contructing an AutoPtr from another AutoPtr causes the old
one
* to be released from destruction duty. */
AutoPtr(const AutoPtr &a);
/** Copy contructing an AutoPtr from a pointer with a different element
type. */
template<class T1> AutoPtr(const AutoPtr<T1> &a);
}
devstudio says: member function already defined or declared
on the last constructor
thanks
yomgui
The following code compiles on Unix but refuse to do so with devstudio6
can anyone help me to get it right ? (ie for visual studio)
template <class T> class AutoPtr
{
public:
/** Default constructor. */
AutoPtr(T* p = 0);
/** Copy contructing an AutoPtr from another AutoPtr causes the old
one
* to be released from destruction duty. */
AutoPtr(const AutoPtr &a);
/** Copy contructing an AutoPtr from a pointer with a different element
type. */
template<class T1> AutoPtr(const AutoPtr<T1> &a);
}
devstudio says: member function already defined or declared
on the last constructor
thanks
yomgui