derived.h
Go to the documentation of this file.
1 #pragma once
2 
3 
5 {
6 
7  template <class DerivedT, class ThisT>
8  DerivedT&
9  derived(ThisT* t)
10  {
11  return static_cast<DerivedT&>(*t);
12  }
13 
14 
15  template <class DerivedT, class ThisT>
16  const DerivedT&
17  derived(const ThisT* t)
18  {
19  return static_cast<const DerivedT&>(*t);
20  }
21 
22 }
armarx::armem::base::detail
Definition: AronTyped.cpp:6
armarx::armem::base::detail::derived
DerivedT & derived(ThisT *t)
Definition: derived.h:9