diff options
author | Sven Gothel <[email protected]> | 2021-01-03 19:26:33 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-01-03 19:26:33 +0100 |
commit | eeaf29bbf1b16100f57d9990336473018b6340a4 (patch) | |
tree | 1d11197802c65d083f7b24df58ff7a9626333aeb /test/test_datatype01.hpp | |
parent | 690feccce0eb60792d662993f76ea7ccc21f5395 (diff) |
basic_types.hpp: Add jau::type_name_cue<T> and jau::type_cue<T> to support certain compile time typename information w/o RTTI
Diffstat (limited to 'test/test_datatype01.hpp')
-rw-r--r-- | test/test_datatype01.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_datatype01.hpp b/test/test_datatype01.hpp index 1487e62..8a52c02 100644 --- a/test/test_datatype01.hpp +++ b/test/test_datatype01.hpp @@ -92,6 +92,8 @@ __pack ( struct Addr48Bit { } } ); +JAU_TYPENAME_CUE_ALL(Addr48Bit) + inline bool operator==(const Addr48Bit& lhs, const Addr48Bit& rhs) noexcept { if( &lhs == &rhs ) { return true; @@ -163,6 +165,8 @@ class DataType01 { return "["+address.toString()+", "+std::to_string(type)+"]"; } }; +JAU_TYPENAME_CUE_ALL(DataType01) + inline bool operator==(const DataType01& lhs, const DataType01& rhs) noexcept { if( &lhs == &rhs ) { return true; |