common.h | 263 // Use implicit_cast as a safe version of static_cast or const_cast 267 // When you use implicit_cast, the compiler checks that the cast is safe. 273 // implicit_cast is the same as for static_cast etc.: 275 // implicit_cast<ToType>(expr) 277 // implicit_cast would have been part of the C++ standard library, 281 inline To implicit_cast(From const &f) { function in namespace:google::protobuf::internal 286 // SuperclassOfFoo), it's fine to use implicit_cast<>, since upcasts 310 implicit_cast<From*, To>(0); 323 using internal::implicit_cast; [all...] |