Changeset 476:bc9f23700bec in finroc_core
- Timestamp:
- 04.05.2020 23:32:09 (4 years ago)
- Branch:
- 14.08
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tAnnotatable.h
r362 r476 91 91 void AddAnnotation(TAnnotation& ann) 92 92 { 93 #ifndef __clang__ // clang does not like this assert: static_assert expression is not an integral constant expression 94 static_assert(static_cast<void*>(&ann) == &static_cast<tAnnotation&>(ann), "tAnnotation must be first parent class when using multiple inheritance"); 95 #endif 93 assert(static_cast<void*>(&ann) == &static_cast<tAnnotation&>(ann) && "tAnnotation must be first parent class when using multiple inheritance"); 96 94 internal::tAnnotatableImplementation::AddAnnotation(ann, typeid(TAnnotation).name()); 97 95 }
Note: See TracChangeset
for help on using the changeset viewer.