fix doc example typo
[boost.git] / boost / config / no_tr1 / memory.hpp
blob2b5d2080272cfb3f7bd5c29789906343cb4638ca
1 // (C) Copyright John Maddock 2005.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 //
6 // The aim of this header is just to include <memory> but to do
7 // so in a way that does not result in recursive inclusion of
8 // the Boost TR1 components if boost/tr1/tr1/memory is in the
9 // include search path. We have to do this to avoid circular
10 // dependencies:
13 #ifndef BOOST_CONFIG_MEMORY
14 # define BOOST_CONFIG_MEMORY
16 # ifndef BOOST_TR1_NO_RECURSION
17 # define BOOST_TR1_NO_RECURSION
18 # define BOOST_CONFIG_NO_MEMORY_RECURSION
19 # endif
21 # include <memory>
23 # ifdef BOOST_CONFIG_NO_MEMORY_RECURSION
24 # undef BOOST_TR1_NO_RECURSION
25 # undef BOOST_CONFIG_NO_MEMORY_RECURSION
26 # endif
28 #endif