catch_matchers.cpp 685 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Created by Phil Nash on 19/07/2017.
  3. *
  4. * Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #include "catch_matchers.h"
  8. namespace Catch {
  9. namespace Matchers {
  10. namespace Impl {
  11. std::string MatcherUntypedBase::toString() const {
  12. if( m_cachedToString.empty() )
  13. m_cachedToString = describe();
  14. return m_cachedToString;
  15. }
  16. MatcherUntypedBase::~MatcherUntypedBase() = default;
  17. } // namespace Impl
  18. } // namespace Matchers
  19. using namespace Matchers;
  20. using Matchers::Impl::MatcherBase;
  21. } // namespace Catch