Opened 14 years ago

Last modified 53 years ago

#2960 new Bugs

Composing argument pack formed with positional arguments, using the comma operator

Reported by: e_r Owned by: Daniel Wallin
Milestone: To Be Determined Component: parameter
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Due to a bug (or perhaps my misusage), I am unable to compose two argument packs, each formed using positional arguments, using the comma operator.

news://news.gmane.org:119/grtmb9$tpq$1@ger.gmane.org Compiler : i686-apple-darwin9-gcc-4.0.1

BOOST_PARAMETER_KEYWORD(tag, x) BOOST_PARAMETER_KEYWORD(tag, y) template<class ArgumentPack> void f(ArgumentPack const & args){

double x_val = args[x]; double y_val = args[y];

}

typedef boost::parameter::parameters<

parameter::required<tag::x>

par_x_t;

typedef boost::parameter::parameters<

parameter::required<tag::y>

par_y_t;

double x_val = 9.0; double y_val = 0.1; spec_x_t spec_x; spec_y_t spec_y; f(

( spec_x(x_val),spec_y(y_val))

); no match operator[<unnamed>::x]

Change History (0)

Note: See TracTickets for help on using tickets.