|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64608 - sandbox/variadic_templates/boost/mpl
From: cppljevans_at_[hidden]
Date: 2010-08-04 19:16:28
Author: cppljevans
Date: 2010-08-04 19:15:19 EDT (Wed, 04 Aug 2010)
New Revision: 64608
URL: http://svn.boost.org/trac/boost/changeset/64608
Log:
document reason for BOOST_PP_REPEAT
Text files modified:
sandbox/variadic_templates/boost/mpl/bindv.hpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: sandbox/variadic_templates/boost/mpl/bindv.hpp
==============================================================================
--- sandbox/variadic_templates/boost/mpl/bindv.hpp (original)
+++ sandbox/variadic_templates/boost/mpl/bindv.hpp 2010-08-04 19:15:19 EDT (Wed, 04 Aug 2010)
@@ -38,9 +38,18 @@
>
: resolve_bind_arg
< T
+ #if 1
#define RESOLVE_BIND_ARG_AT_C_US(z,n,data) , typename at_c<package<U...>,n>::type
BOOST_PP_REPEAT(BOOST_MPL_LIMIT_METAFUNCTION_ARITY,RESOLVE_BIND_ARG_AT_C_US,~)
#undef RESOLVE_BIND_ARG_AT_C_US
+ #else
+ //This branch of #if.#else.#endif causes compile failure
+ //with error message about wrong number of template args.
+ //Apparently U... cannot be passed to a fixed arity
+ //template even if sizeof...(U) == template arity.
+ //
+ , U...
+ #endif
>
{};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk