77# define IMPLICIT_DWA2002326_HPP
88# include < boost/python/converter/rvalue_from_python_data.hpp>
99# include < boost/python/converter/registrations.hpp>
10+ # include < boost/python/converter/registered.hpp>
1011
1112namespace boost { namespace python { namespace converter {
1213
@@ -15,27 +16,27 @@ struct implicit
1516{
1617 static void * convertible (PyObject* obj)
1718 {
18- // Find a converter registration which can produce a Source
19- // instance from obj. The user has told us that Source can be
20- // converted to Target, and instantiating construct() below,
21- // ensures that at compile-time.
19+ // Find a converter chain which can produce a Source instance
20+ // from obj. The user has told us that Source can be converted
21+ // to Target, and instantiating construct() below, ensures
22+ // that at compile-time.
2223 return const_cast <rvalue_from_python_chain*>(
23- converter::implicit_conversion_chain (obj, from_python <Source>::converters));
24+ converter::implicit_conversion_chain (obj, registered <Source>::converters));
2425 }
2526
2627 static void construct (PyObject* obj, rvalue_from_python_stage1_data* data)
2728 {
28- // This is the registration we got from the convertible step
29- rvalue_from_python_chain const * registration
29+ // This is the chain we got from the convertible step
30+ rvalue_from_python_chain const * chain
3031 = static_cast <rvalue_from_python_chain*>(data->convertible );
3132
3233 // Call the convertible function again
33- rvalue_from_python_data<Source> intermediate_data (registration ->convertible (obj));
34+ rvalue_from_python_data<Source> intermediate_data (chain ->convertible (obj));
3435
3536 // Use the result to construct the source type if the first
3637 // converter was an rvalue converter.
37- if (registration ->construct != 0 )
38- registration ->construct (obj, &intermediate_data.stage1 );
38+ if (chain ->construct != 0 )
39+ chain ->construct (obj, &intermediate_data.stage1 );
3940
4041 void * storage = ((rvalue_from_python_storage<Target>*)data)->storage .bytes ;
4142# if !defined(BOOST_MSVC) || _MSC_FULL_VER != 13012108 // vc7.01 alpha workaround
0 commit comments