1/* Boost.Flyweight test of no_locking.
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
11#include "test_no_locking.hpp"
12
13#include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
14#include <boost/flyweight/flyweight.hpp>
15#include <boost/flyweight/hashed_factory.hpp>
16#include <boost/flyweight/no_locking.hpp>
17#include <boost/flyweight/refcounted.hpp>
18#include <boost/flyweight/static_holder.hpp>
19#include "test_basic_template.hpp"
20
21using namespace boost::flyweights;
22
23struct no_locking_flyweight_specifier
24{
25 template<typename T>
26 struct apply
27 {
28 typedef flyweight<T,no_locking> type;
29 };
30};
31
32void test_no_locking()
33{
34 test_basic_template<no_locking_flyweight_specifier>();
35}
36

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