diff --git a/PDT/Matcher.tcc b/PDT/Matcher.tcc --- a/PDT/Matcher.tcc +++ b/PDT/Matcher.tcc @@ -1,60 +1,60 @@ // -*- C++ -*- // // Matcher.tcc is a part of ThePEG - Toolkit for HEP Event Generation // Copyright (C) 1999-2017 Leif Lonnblad // // ThePEG is licenced under version 3 of the GPL, see COPYING for details. // Please respect the MCnet academic guidelines, see GUIDELINES for details. // // // This is the implementation of the non-inlined templated member // functions of the Matcher class. // namespace ThePEG { template Matcher::~Matcher() { - assert ( initMatcher.check() ); + if( !initMatcher.check() ){assert(false)}; } template NoPIOClassDescription< Matcher > Matcher::initMatcher; template PMPtr Matcher::Create(const string & newName, string antiName) { typedef typename Ptr< Matcher >::pointer MatcherPtr; typedef typename Ptr< Matcher >::pointer AMatcherPtr; PMPtr pm = new_ptr(); registerRepository(pm, newName); if ( typeid(T) == typeid(typename T::CC) ) return pm; if ( antiName.empty() ) antiName = newName + "~"; PMPtr apm = new_ptr(); setCC(pm, apm); registerRepository(apm, antiName); return pm; } template PMPtr Matcher::pmclone() const { return new_ptr(*this); } template IBPtr Matcher::clone() const { return pmclone(); } template IBPtr Matcher::fullclone() const { PMPtr pm = pmclone(); registerRepository(pm); if ( !CC() ) return pm; PMPtr apm = CC()->pmclone(); setCC(pm, apm); registerRepository(apm); return pm; } }