Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Ambiguous reference to symbol
Hi! Using below code I'm getting: test.cpp(20) : Error: ambiguous reference to symbol Had: tmCluster::GetParts() and: tmCluster::GetParts()const test.cpp(27) : Error: ambiguous reference to symbol Had: tmCluster::GetParts() and: tmCluster::GetParts()const Is that correct? ========================================================== class tmNode{}; template <class T> class tmDpptrArray { typedef T* ptr_t; }; class tmCluster { public: tmDpptrArray<tmNode> mNodes; template <class P> tmDpptrArray<P>& GetParts(); template <class P> const tmDpptrArray<P>& GetParts() const; }; template <> inline tmDpptrArray<tmNode>& tmCluster::GetParts<tmNode>() { return mNodes; } template <> inline const tmDpptrArray<tmNode>& tmCluster::GetParts<tmNode>() const { return mNodes; } ========================================================== ABX Jan 02 2006
In article <dpbe2a$38r$1 digitaldaemon.com>, W這dzimierz Skiba says...Hi! Using below code I'm getting: test.cpp(20) : Error: ambiguous reference to symbol Had: tmCluster::GetParts() and: tmCluster::GetParts()const test.cpp(27) : Error: ambiguous reference to symbol Had: tmCluster::GetParts() and: tmCluster::GetParts()const Is that correct? Jan 07 2006
vvvua faust.net.ua wrote in news:dpnvrk$2qgs$1 digitaldaemon.com:Is that correct? Jan 08 2006
|