Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native_proto_caster.h: Add *_with_smart_holder_support_enabled specializations. #170

Merged
merged 1 commit into from
Aug 2, 2024

Commits on Aug 2, 2024

  1. native_proto_caster.h: Add *_with_smart_holder_support_enabled spec…

    …ializations.
    
    The
    
    * `copyable_holder_caster_shared_ptr_with_smart_holder_support_enabled` and
    
    * `move_only_holder_caster_unique_ptr_with_smart_holder_support_enabled`
    
    SFINAE helpers were introduced with pybind/pybind11#5257. They need to be specialized here (`std::false_type`) because native_proto_caster.h has its own specializations for
    
    * `copyable_holder_caster<ProtoType, std::shared_ptr<ProtoType>>` and
    
    * `move_only_holder_caster<ProtoType, std::unique_ptr<ProtoType>>`.
    
    PiperOrigin-RevId: 658867114
    Ralf W. Grosse-Kunstleve authored and copybara-github committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    51fc4ab View commit details
    Browse the repository at this point in the history