From eeaf29bbf1b16100f57d9990336473018b6340a4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 3 Jan 2021 19:26:33 +0100 Subject: basic_types.hpp: Add jau::type_name_cue and jau::type_cue to support certain compile time typename information w/o RTTI --- test/test_datatype01.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_datatype01.hpp') 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; -- cgit v1.2.3