test_no_tracking.cpp 946 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* Boost.Flyweight test of no_tracking.
  2. *
  3. * Copyright 2006-2008 Joaquin M Lopez Munoz.
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * (See accompanying file LICENSE_1_0.txt or copy at
  6. * http://www.boost.org/LICENSE_1_0.txt)
  7. *
  8. * See http://www.boost.org/libs/flyweight for library home page.
  9. */
  10. #include "test_no_tracking.hpp"
  11. #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
  12. #include <boost/flyweight/flyweight.hpp>
  13. #include <boost/flyweight/hashed_factory.hpp>
  14. #include <boost/flyweight/no_tracking.hpp>
  15. #include <boost/flyweight/simple_locking.hpp>
  16. #include <boost/flyweight/static_holder.hpp>
  17. #include "test_basic_template.hpp"
  18. using namespace boost::flyweights;
  19. struct no_tracking_flyweight_specifier
  20. {
  21. template<typename T>
  22. struct apply
  23. {
  24. typedef flyweight<T,no_tracking> type;
  25. };
  26. };
  27. void test_no_tracking()
  28. {
  29. test_basic_template<no_tracking_flyweight_specifier>();
  30. }