File tree Expand file tree Collapse file tree
include/boost/python/object Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ struct class_metadata
164164 >::type held_type;
165165
166166 // Determine if the object will be held by value
167- typedef is_convertible<held_type*,T*> use_value_holder;
167+ typedef mpl::bool_< is_convertible<held_type*,T*>::value > use_value_holder;
168168
169169 // Compute the "wrapped type", that is, if held_type is a smart
170170 // pointer, we're talking about the pointee.
@@ -175,10 +175,12 @@ struct class_metadata
175175 >::type wrapped;
176176
177177 // Determine whether to use a "back-reference holder"
178- typedef mpl::or_<
179- has_back_reference<T>
180- , is_same<held_type_arg,T>
181- , is_base_and_derived<T,wrapped>
178+ typedef mpl::bool_<
179+ mpl::or_<
180+ has_back_reference<T>
181+ , is_same<held_type_arg,T>
182+ , is_base_and_derived<T,wrapped>
183+ >::value
182184 > use_back_reference;
183185
184186 // Select the holder.
You can’t perform that action at this time.
0 commit comments