diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-18 18:22:14 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-18 18:22:14 +0100 |
commit | a30e627ffccf36384689295ce54af32e38ef5ef8 (patch) | |
tree | ffd03045f2f292da9d9f2d684d166093abaf7a21 /test/core/managed/ManagedTest.cpp | |
parent | 1ebaaf08c0bc7de704a3c2a423f572c54c4a069b (diff) |
Droped Rtti<T> class, using RttiType instead
Diffstat (limited to 'test/core/managed/ManagedTest.cpp')
-rw-r--r-- | test/core/managed/ManagedTest.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/core/managed/ManagedTest.cpp b/test/core/managed/ManagedTest.cpp index 0391738..b5a6e64 100644 --- a/test/core/managed/ManagedTest.cpp +++ b/test/core/managed/ManagedTest.cpp @@ -19,6 +19,7 @@ #include <gtest/gtest.h> #include <core/common/Rtti.hpp> +#include <core/common/RttiBuilder.hpp> #include <core/managed/Managed.hpp> #include "TestManaged.hpp" @@ -76,11 +77,11 @@ class TypeTestManaged5 : public Managed { using Managed::Managed; }; -static const Rtti<TypeTestManaged1> Type1 = RttiBuilder{"Type1"}; -static const Rtti<TypeTestManaged2> Type2 = RttiBuilder{"Type2"}; -static const Rtti<TypeTestManaged3> Type3 = RttiBuilder{"Type3"}.parent(&Type1); -static const Rtti<TypeTestManaged4> Type4 = - RttiBuilder{"Type4"}.parent({&Type3, &Type2}); +static const RttiType Type1 = RttiBuilder<TypeTestManaged1>("Type1"); +static const RttiType Type2 = RttiBuilder<TypeTestManaged2>("Type2"); +static const RttiType Type3 = RttiBuilder<TypeTestManaged3>("Type3").parent(&Type1); +static const RttiType Type4 = + RttiBuilder<TypeTestManaged4>("Type4").parent({&Type3, &Type2}); TEST(Managed, type) { |