MCPcopy Create free account
hub / github.com/apache/singa / ImplicitCast_

Function ImplicitCast_

test/gtest/gtest.h:2205–2205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2203// namespace alone is not enough because the function can be found by ADL.
2204template<typename To>
2205inline To ImplicitCast_(To x) { return x; }
2206
2207// When you upcast (that is, cast a pointer from type Foo to type
2208// SuperclassOfFoo), it's fine to use ImplicitCast_<>, since upcasts

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected