Chris@16: /* Copyright 2006-2008 Joaquin M Lopez Munoz. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Chris@16: * See http://www.boost.org/libs/flyweight for library home page. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_FLYWEIGHT_NO_TRACKING_HPP Chris@16: #define BOOST_FLYWEIGHT_NO_TRACKING_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include /* keep it first to prevent nasty warns in MSVC */ Chris@16: #include Chris@16: #include Chris@16: Chris@16: /* Null tracking policy: elements are never erased from the factory. Chris@16: */ Chris@16: Chris@16: namespace boost{ Chris@16: Chris@16: namespace flyweights{ Chris@16: Chris@16: struct no_tracking:tracking_marker Chris@16: { Chris@16: struct entry_type Chris@16: { Chris@16: template Chris@16: struct apply{typedef Value type;}; Chris@16: }; Chris@16: Chris@16: struct handle_type Chris@16: { Chris@16: template Chris@16: struct apply{typedef Handle type;}; Chris@16: }; Chris@16: }; Chris@16: Chris@16: } /* namespace flyweights */ Chris@16: Chris@16: } /* namespace boost */ Chris@16: Chris@16: #endif