[C++-sig] Trying to clone (again), with VC8

Paul F. Kunz Paul_Kunz at slac.stanford.edu
Fri Feb 24 19:41:38 CET 2006


>>>>> On Fri, 24 Feb 2006 11:19:04 -0500, David Abrahams <dave at boost-consulting.com> said:

> "Paul F. Kunz" <Paul_Kunz at slac.stanford.edu> writes:
>>>>>>> On Thu, 23 Feb 2006 09:02:56 -0500, David Abrahams
>>>>>>> <dave at boost-consulting.com> said:
>>
>>> Well, I'm surprised it works anywhere.  method_result has an
>>> implicit conversion _to_ any type, and object has an implicit
>>> conversion _from_ any type.  If that's not ambiguous on a
>>> fully-conforming compiler, it might be close enough to confuse
>>> vc8.
>>  You suggested this code to me last year.  Any ideas on rewriting
>> it so it compiles with VC++ 8?

> Instead of implicit_cast, maybe try:

>    object py_result( clone() );

   Many thanks Dave, that works.



More information about the Cplusplus-sig mailing list