Skip to content

Commit

Permalink
Fixes need for special MSVC case, see USCiLab#373
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Feb 7, 2017
1 parent fb6606d commit b827b95
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions unittests/polymorphic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,14 @@ struct PolyBaseAA : PolyBaseA
ar( w );
}

static void doesNothing()
{
cereal::detail::RegisterPolymorphicCaster<PolyBaseA, PolyBaseAA>::bind();
}

bool operator==( PolyBaseAA const & other ) const
{
return w == other.w;
}
};

CEREAL_REGISTER_POLYMORPHIC_RELATION(PolyBaseA, PolyBaseAA)

struct PolyBaseB : virtual PolyBaseAA
{
PolyBaseB() {}
Expand Down Expand Up @@ -131,9 +128,6 @@ struct PolyDerivedD : PolyBaseB, PolyBaseC
};

CEREAL_REGISTER_TYPE(PolyDerivedD)
#ifdef _MSC_VER
CEREAL_REGISTER_POLYMORPHIC_RELATION(PolyBaseA, PolyDerivedD)
#endif

struct PolyBase
{
Expand Down

0 comments on commit b827b95

Please sign in to comment.