[C++-sig] Re: boost::python::range and duplicate comdat under MSVC 6

David Abrahams dave at boost-consulting.com
Mon Nov 10 23:25:26 CET 2003


Raoul Gough <RaoulGough at yahoo.co.uk> writes:

> OK, I've gone with a static variable in register_class_from_python to
> force construction of the shared_ptr_from_python. This is wrapped in
> MSVC6 workaround guards, so that other compilers still use a
> class-static variable. No real reason for doing this, except that it
> would probably affect the initialization order on other platforms
> unnecessarily, and I just like to minimize the impact of fixes.

I think I prefer having only one version for all compilers.  It will
be very mysterious indeed if people see different behavior on the
different platforms.

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





More information about the Cplusplus-sig mailing list