[C++-sig] Regression in Boost.Python v1.33

Niall Douglas s_sourceforge at nedprod.com
Thu Sep 29 13:43:26 CEST 2005


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, and why was it done when the old code seems 
perfectly fine?

Cheers,
Niall






More information about the Cplusplus-sig mailing list