Applying move_only_holder_caster_sfinae.patch (copybara cannot handle the combination).

parent 95425f13
...@@ -2260,7 +2260,7 @@ template <typename T> ...@@ -2260,7 +2260,7 @@ template <typename T>
class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { }; class type_caster<std::shared_ptr<T>> : public copyable_holder_caster<T, std::shared_ptr<T>> { };
#endif #endif
template <typename type, typename holder_type> template <typename type, typename holder_type, typename SFINAE = void>
struct move_only_holder_caster { struct move_only_holder_caster {
static_assert(std::is_base_of<type_caster_base<type>, type_caster<type>>::value, static_assert(std::is_base_of<type_caster_base<type>, type_caster<type>>::value,
"Holder classes are only supported for custom types"); "Holder classes are only supported for custom types");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment