• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Boost.Flyweight test of intermodule_holder.
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_intermod_holder.hpp"
12 
13 #include "intermod_holder_dll.hpp"
14 #include "test_basic_template.hpp"
15 
16 using namespace boost::flyweights;
17 
18 struct intermodule_holder_flyweight_specifier1
19 {
20   template<typename T>
21   struct apply
22   {
23     typedef flyweight<T,intermodule_holder> type;
24   };
25 };
26 
test_intermodule_holder()27 void test_intermodule_holder()
28 {
29   test_basic_template<intermodule_holder_flyweight_specifier1>();
30 
31   intermodule_flyweight_string str=
32     create_intermodule_flyweight_string("boost");
33   BOOST_TEST(str==intermodule_flyweight_string("boost"));
34 }
35