Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Utilities
STL
ClassHelpers.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <type_traits>
4
5
37
/*#define OFFLINE_CAST_CONST_METHOD(_T_, _Class_, _Method_) \
38
const_cast<_T_>(static_cast<const _Class_&>(*this)._Method_)*/
39
40
/*#define OFFLINE_CAST_CONST_METHOD(_T_, _Method_) \
41
const_cast<_T_>( \
42
static_cast< \
43
std::add_const_t< \
44
std::remove_reference_t< \
45
decltype(*this) \
46
> \
47
>& \
48
>(*this)._Method_ \
49
)*/
50
51
#define OFFLINE_CAST_CONST_METHOD(_Method_) \
52
const_cast< \
53
std::remove_const_t< \
54
decltype(this->_Method_) \
55
> \
56
>( \
57
static_cast< \
58
std::add_const_t< \
59
std::remove_reference_t< \
60
decltype(*this) \
61
> \
62
>& \
63
>(*this)._Method_ \
64
)
, generated on Tue Sep 26 2023.