We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb6606d commit b827b95Copy full SHA for b827b95
unittests/polymorphic.hpp
@@ -53,17 +53,14 @@ struct PolyBaseAA : PolyBaseA
53
ar( w );
54
}
55
56
- static void doesNothing()
57
- {
58
- cereal::detail::RegisterPolymorphicCaster<PolyBaseA, PolyBaseAA>::bind();
59
- }
60
-
61
bool operator==( PolyBaseAA const & other ) const
62
{
63
return w == other.w;
64
65
};
66
+CEREAL_REGISTER_POLYMORPHIC_RELATION(PolyBaseA, PolyBaseAA)
+
67
struct PolyBaseB : virtual PolyBaseAA
68
69
PolyBaseB() {}
@@ -131,9 +128,6 @@ struct PolyDerivedD : PolyBaseB, PolyBaseC
131
128
132
129
133
130
CEREAL_REGISTER_TYPE(PolyDerivedD)
134
-#ifdef _MSC_VER
135
-CEREAL_REGISTER_POLYMORPHIC_RELATION(PolyBaseA, PolyDerivedD)
136
-#endif
137
138
struct PolyBase
139
0 commit comments