From d2045260a5cd907238e594483daf0d2fbfa51314 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Sat, 24 Nov 2018 20:07:53 +0800 Subject: [PATCH] Change visibilities of variant_visitor of pybind11 test=develop --- paddle/fluid/pybind/protobuf.cc | 13 +++++++------ paddle/fluid/pybind/pybind.cc | 5 ++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/pybind/protobuf.cc b/paddle/fluid/pybind/protobuf.cc index 586e92c2b31..0443ff3fc3d 100644 --- a/paddle/fluid/pybind/protobuf.cc +++ b/paddle/fluid/pybind/protobuf.cc @@ -30,11 +30,12 @@ namespace pybind11 { namespace detail { // Can be replaced by a generic lambda in C++14 -struct variant_caster_visitor : public boost::static_visitor { +struct __attribute__((visibility("hidden"))) paddle_variant_caster_visitor + : public boost::static_visitor { return_value_policy policy; handle parent; - variant_caster_visitor(return_value_policy policy, handle parent) + paddle_variant_caster_visitor(return_value_policy policy, handle parent) : policy(policy), parent(parent) {} template @@ -44,10 +45,10 @@ struct variant_caster_visitor : public boost::static_visitor { }; template -struct variant_caster; +struct paddle_variant_caster; template