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
11#include "test_serialization.hpp"
12
13#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
14#include <boost/flyweight.hpp>
15#include "test_serialization_template.hpp"
16
17using namespace boost::flyweights;
18
19struct serialization_flyweight_specifier
20{
21 template<typename T>
22 struct apply
23 {
24 typedef flyweight<T> type;
25 };
26};
27
28void test_serialization()
29{
30 test_serialization_template<serialization_flyweight_specifier>();
31}
32

source code of boost/libs/flyweight/test/test_serialization.cpp