Roll forward to cl/318180324

Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I3575487805a067fa397ea01c56e8d26c84054f9d
This commit is contained in:
Alexey Polyudov
2020-06-24 18:23:59 -07:00
parent 7a316cc917
commit 3e5ca324f1
21 changed files with 637 additions and 109 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ namespace nearby {
template <typename Derived, typename Base>
inline Derived down_cast(Base* value) {
using DerivedType = typename std::remove_pointer<Derived>::type;
static_assert(std::is_base_of<Base, DerivedType>::value);
static_assert(std::is_base_of<Base, DerivedType>::value,
"incompatible casting");
return static_cast<Derived>(value);
}