Re: Perfect forwarding seems not to be so perfect

2011-12-06 Thread Jonathan Wakely
On 6 December 2011 16:41, Jonathan Wakely wrote: > I'm guessing you've called format with an explicit template > argument list, and it's not compatible with the actual types you > called the function with.  Due to > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50828 the error doesn't > show the expl

Re: Perfect forwarding seems not to be so perfect

2011-12-06 Thread Jonathan Wakely
On 6 December 2011 15:11, Piotr Wyderski wrote: > Hello, > > on gcc-4.6.2/x64/linux: > >    template inline string format(const string& fmt, > TA&&... args) { > >        string_formatter f; >        f.format(fmt, std::forward(args)...); >        return f.get_result(); >    } > > results in: > > er

Re: Perfect forwarding seems not to be so perfect

2011-12-06 Thread Paolo Carlini
On 12/06/2011 04:11 PM, Piotr Wyderski wrote: Hello, on gcc-4.6.2/x64/linux: template inline string format(const string& fmt, TA&&... args) { string_formatter f; f.format(fmt, std::forward(args)...); return f.get_result(); } results in: error: no matchi