Boost logo

Boost Users :

From: Daniel Wallin (daniel_at_[hidden])
Date: 2007-05-27 12:03:26


John Maddock wrote:
> John Maddock wrote:
>>> From within the body of the BOOST_PARAMETER_FUNCTION generated
>>> function it
>> appears that I can use the name "Args" to refer to the type of the
>> argument pack, and maybe in the return type as well? But this isn't
>> documented, so can I rely on it?

Yes, you can rely on it. It's supposed to be documented, but this
feature seems to have gotten completely lost somewhere along the way.

Here's a patch for it:

--- preprocessor.hpp 29 Sep 2006 00:31:28 -0000 1.5.2.9
+++ preprocessor.hpp 27 May 2007 16:01:40 -0000
@@ -149,7 +149,8 @@
       , typename Parameters::deduced_list
       , tag_keyword_arg
       , mpl::false_
- >::type type;
+ >::type result;
+ typedef typename mpl::first<result>::type type;
 };

I'll be checking this in on HEAD and RC shortly.

Thank you for reporting it,

-- 
Daniel Wallin
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net