comparison 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
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 /* Copyright 2006-2008 Joaquin M Lopez Munoz.
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
5 *
6 * See http://www.boost.org/libs/flyweight for library home page.
7 */
8
9 /* Brute force implementation of perfect forwarding overloads.
10 * Usage: include after having defined the argument macros:
11 * BOOST_FLYWEIGHT_PERFECT_FWD_NAME
12 * BOOST_FLYWEIGHT_PERFECT_FWD_BODY
13 */
14
15 /* This user_definable macro limits the maximum number of arguments to
16 * be perfect forwarded. Beware combinatorial explosion: manual perfect
17 * forwarding for n arguments produces 2^n distinct overloads.
18 */
19
20 #if !defined(BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS)
21 #define BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS 5
22 #endif
23
24 #if BOOST_FLYWEIGHT_LIMIT_PERFECT_FWD_ARGS<=5
25 #include <boost/flyweight/detail/pp_perfect_fwd.hpp>
26 #else
27 #include <boost/flyweight/detail/dyn_perfect_fwd.hpp>
28 #endif