Farid Zaripov wrote:
-----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 & ().

So those are bugs in MSVC 7.1. But at least the example now
compiles with MSVC 8. It would be nice if it compiled with
both but I don't think it's necessary to any more trouble
than we already have to accommodate an old compiler that's
already been superseded by a more conforming release.

Thanks again!
Martin

Reply via email to