> -----Original Message----- > From: Martin Sebor [mailto:[EMAIL PROTECTED] > Sent: Friday, May 25, 2007 10:42 PM > To: [email protected] > Subject: Re: svn commit: r541635 - > /incubator/stdcxx/trunk/examples/tutorial/dynatype.cpp > > Btw., I tried to get the test case you submitted to Microsoft > https://connect.microsoft.com/VisualStudio/feedback/ViewFeedba > ck.aspx?FeedbackID=266262 > to work and changing class test like this did it: > > struct test { > template <class T> operator T& (); > template <class T> operator const T& () const; > }; > > Does it work in the full example?
It works fine on the MSVC 8.0. But MSVC 7.1 issues the different errors, depending on the order of using dynatype::operator const T& (). In original order the compiler complains only about unable to convert from dynatype to char. When I've changed the type char to int, the example compiled successfully, but linker did not found the external symbol dynatype::operator<double> const double & (). When I've exchanged the types double and int, the linker complained about external symbol dynatype::operator<int> const int & (). Farid.
