[C++-sig] Regression in Boost.Python v1.33
David Abrahams
dave at boost-consulting.com
Fri Sep 30 13:49:18 CEST 2005
"Niall Douglas" <s_sourceforge at nedprod.com> writes:
> The TnFOX Python bindings are failing to compile on MSVC7.1 in BPL
> v1.33 when they worked in v1.32:
>
> D:\Tornado\Tn\TClient\boost\boost\python\converter\registered.hpp(88)
> : error C2784: 'const boost::python::converter::registration
> &boost::python::converter::detail::registry_lookup(T &(__cdecl
> *)(void))' : could not deduce template argument for 'T1 &(__cdecl
> *)(void)' from 'volatile const boost::add_reference<T>::type (__cdecl
> *)(void)'
>
> I see some changes have been made in converter/registered.hpp,
> namely:
>
> template <class T>
> registration const& registered_base<T>::converters
> = registry::lookup(type_id<T>());
>
> ... has become:
>
> template <class T>
> registration const& registered_base<T>::converters =
> detail::registry_lookup((T(*)())0);
>
> Is this known about,
No, all the tests passed for vc7.1 upon release of 1.33.0, so it's
surprising to see a problem here. Do you have any idea what T is in
this case? A full instantiation backtrace might help.
> and why was it done when the old code seems
> perfectly fine?
According to cvs annotate and cvs log, it was:
revision 1.6
date: 2005/05/16 14:54:12; author: david_abrahams; state: Exp; lines: +8 -24
Workarounds for vc6 and 7.
> Cheers,
> Niall
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list