We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7a729 commit af8ee51Copy full SHA for af8ee51
pybind11_protobuf/proto_caster_impl.h
@@ -55,7 +55,7 @@ struct proto_caster_load_impl {
55
const ::google::protobuf::Message *message =
56
pybind11_protobuf::PyProtoGetCppMessagePointer(src);
57
if (message) {
58
- value = dynamic_cast<const ProtoType *>(message);
+ value = ::google::protobuf::DynamicCastToGenerated<ProtoType>(message);
59
if (value) {
60
// If the capability were available, then we could probe PyProto_API and
61
// allow c++ mutability based on the python reference count.
0 commit comments