Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #68234
| From | Manfred <noname@add.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: forward variable number of arguments precisely to a template method |
| Date | 2019-09-05 20:21 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <qkrjnp$1jd$2@gioia.aioe.org> (permalink) |
| References | <pxjbF.468705$tG2.346514@fx48.iad> <e88fa91f-76c5-48fd-a22e-35b679f9b1a1@googlegroups.com> <d8QbF.368161$oq9.94140@fx47.iad> |
On 9/4/2019 4:47 PM, Pavel wrote: > Öö Tiib wrote: >> On Tuesday, 3 September 2019 04:41:51 UTC+3, Pavel wrote: >>> >>> Any ideas? (gcc 4.8.5 / -std=c++11 is of utmost interest but any working >>> configuration would help) >> >> What was the question or issue? Did read 3 times over but somehow missed >> it. :( Perhaps I need a coffee. >> > I want Caller<IA, 1>::callMethod to have prototype > void Caller<IA, 1>::callMethod<void (IA::*)(I, I), I, I>(void (IA::*)(I, > I), I, I) > > , > > Caller<IA, 2>::callMethod to have prototype > void Caller<IA, 2>::callMethod<void (IA::*)(I const&, I const&), I const&, > I const&>(void (IA::*)(I const&, I const&), I const&, I const&) > > and > > Caller<IA, 3>::callMethod to have prototype > void Caller<IA, 3>::callMethod<void (IA::*)(I const&, I), I const&, > I>(void (IA::*)(I const&, I), I const&, I) > > In other words, I want callMethod generated from the callMethod method > template to take exactly same parameter types for its last 2 parameters > as does the interface method to which the callMethod method forwards. > > I could not achieve this by any of callMethod template definitions I > tried. E.g. the currently-uncommented in my example definition generates > the methods with the prototypes shown in the original post (1st and 3rd > of which are different from the above). > > > FWIW gcc 9.1.1 behaves the same way.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
forward variable number of arguments precisely to a template method Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-09-02 21:41 -0400
Re: forward variable number of arguments precisely to a template method Öö Tiib <ootiib@hot.ee> - 2019-09-03 00:24 -0700
Re: forward variable number of arguments precisely to a template method Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-09-04 10:47 -0400
Re: forward variable number of arguments precisely to a template method Manfred <noname@add.invalid> - 2019-09-05 20:21 +0200
Re: forward variable number of arguments precisely to a template method Vir Campestris <vir.campestris@invalid.invalid> - 2019-09-03 21:29 +0100
Re: forward variable number of arguments precisely to a template method Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-09-04 11:08 -0400
Re: forward variable number of arguments precisely to a template method Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-09-06 03:17 -0700
Re: forward variable number of arguments precisely to a template method Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-09-06 23:48 -0400
Problem solved: forward variable number of arguments precisely to a template method Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-09-07 10:16 -0400
Re: Problem solved: forward variable number of arguments precisely to a template method Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-09-18 08:22 -0700
csiph-web