X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=boost%2Fboost%2Fany.hpp;h=ad3f211f692284a362c06dd3131f19cb8008f38a;hb=b01a9dc187d9cd396a57463ad27511379dcdc9cd;hp=fe8553201ba6fc86272fc64e06a69dbf6faef1e4;hpb=376aaac146989c2060f4159a16c7e8238b400088;p=lyx.git diff --git a/boost/boost/any.hpp b/boost/boost/any.hpp index fe8553201b..ad3f211f69 100644 --- a/boost/boost/any.hpp +++ b/boost/boost/any.hpp @@ -217,15 +217,15 @@ namespace boost // use typeid() comparison, e.g., when our types may travel across // different shared libraries. template - ValueType * unsafe_any_cast(any * operand) + inline ValueType * unsafe_any_cast(any * operand) { return &static_cast *>(operand->content)->held; } template - const ValueType * unsafe_any_cast(const any * operand) + inline const ValueType * unsafe_any_cast(const any * operand) { - return any_cast(const_cast(operand)); + return unsafe_any_cast(const_cast(operand)); } }