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

David Abrahams dave at boost-consulting.com
Fri Feb 24 20:58:36 CET 2006


"Paul F. Kunz" <Paul_Kunz at slac.stanford.edu> writes:

>>>>>> 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.

You're welcome.  Did you submit a bug report to Microsoft?  If not,
please do!  That's how you can pay me back :)

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list