test_serialization.cpp 783 B

12345678910111213141516171819202122232425262728293031
  1. /* Boost.Flyweight test of serialization capabilities.
  2. *
  3. * Copyright 2006-2014 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_serialization.hpp"
  11. #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
  12. #include <boost/flyweight.hpp>
  13. #include "test_serialization_template.hpp"
  14. using namespace boost::flyweights;
  15. struct serialization_flyweight_specifier
  16. {
  17. template<typename T>
  18. struct apply
  19. {
  20. typedef flyweight<T> type;
  21. };
  22. };
  23. void test_serialization()
  24. {
  25. test_serialization_template<serialization_flyweight_specifier>();
  26. }