annotate DEPENDENCIES/generic/include/boost/flyweight/detail/perfect_fwd.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
rev   line source
Chris@16 1 /* Copyright 2006-2008 Joaquin M Lopez Munoz.
Chris@16 2 * Distributed under the Boost Software License, Version 1.0.
Chris@16 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 *
Chris@16 6 * See http://www.boost.org/libs/flyweight for library home page.
Chris@16 7 */
Chris@16 8
Chris@16 9 /* Brute force implementation of perfect forwarding overloads.
Chris@16 10 * Usage: include after having defined the argument macros:
Chris@16 11 * BOOST_FLYWEIGHT_PERFECT_FWD_NAME
Chris@16 12 * BOOST_FLYWEIGHT_PERFECT_FWD_BODY
Chris@16 13 */
Chris@16 14
Chris@16 15 /* This user_definable macro limits the maximum number of arguments to
Chris@16 16 * be perfect forwarded. Beware combinatorial explosion: manual perfect
Chris@16 17 * forwarding for n arguments produces 2^n distinct overloads.
Chris@16 18 */
Chris@16 19
Chris@16 20 #if !defined(BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS)
Chris@16 21 #define BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS 5
Chris@16 22 #endif
Chris@16 23
Chris@16 24 #if BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS<=5
Chris@16 25 #include <boost/flyweight/detail/pp_perfect_fwd.hpp>
Chris@16 26 #else
Chris@16 27 #include <boost/flyweight/detail/dyn_perfect_fwd.hpp>
Chris@16 28 #endif