Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12317

Re: Template argument deduction and function pointers

From 88888 Dihedral <dihedral88888@googlemail.com>
Newsgroups comp.lang.c++
Subject Re: Template argument deduction and function pointers
Date 2011-12-10 11:20 -0800
Organization http://groups.google.com
Message-ID <16300971.1743.1323544844136.JavaMail.geo-discussion-forums@pril5> (permalink)
References <1337659521345220519.215885troplin-bluewin.ch@news.aioe.org> <32687049.683.1323530571695.JavaMail.geo-discussion-forums@prol32> <548924579345235416.652465troplin-bluewin.ch@news.aioe.org>

Show all headers | View raw


On Sunday, December 11, 2011 2:53:35 AM UTC+8, Tobias Müller wrote:
> 88888 Dihedral <dihedr...@googlemail.com> wrote:
> > 
> > http://www.newty.de/fpt/fpt.html
> > 
> > Check the true functional c /c++!
> 
> Have you also read chapter 4? (about functors)
> 
> The setup that I posted is just to illustrate my point, not exactly what I
> am using.
> It's not restricted to functions, also methods should be possible.
> 
> Tobi

I use a function pointer int (*hooker)() in most applications. 
It is the programmer's job to hook the correct address of a function to 
the hooker. 

Also the argument to be used must be programmed right. 
 
There are situations that the hookers are in a library that will be hooked 
by users other than the author of the library.

Then please check the functionoid that requires specific arguments in the 
run time. 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Template argument deduction and function pointers Tobias Müller <troplin@bluewin.ch> - 2011-12-10 12:31 +0000
  Re: Template argument deduction and function pointers 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-10 05:41 -0800
    Re: Template argument deduction and function pointers Tobias Müller <troplin@bluewin.ch> - 2011-12-10 14:40 +0000
      Re: Template argument deduction and function pointers 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-10 07:22 -0800
        Re: Template argument deduction and function pointers Tobias Müller <troplin@bluewin.ch> - 2011-12-10 18:53 +0000
          Re: Template argument deduction and function pointers 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-10 11:20 -0800
            Re: Template argument deduction and function pointers "Heinz Ozwirk" <hozwirk@arcor.de> - 2011-12-11 18:59 +0100
              Re: Template argument deduction and function pointers jgk@panix.com (Joe keane) - 2011-12-14 20:56 +0000
                Re: Template argument deduction and function pointers Ian Collins <ian-news@hotmail.com> - 2011-12-15 10:04 +1300
                Re: Template argument deduction and function pointers gwowen <gwowen@gmail.com> - 2011-12-14 23:36 -0800
                Re: Template argument deduction and function pointers Nobody <nobody@nowhere.com> - 2011-12-15 22:53 +0000
            Re: Template argument deduction and function pointers Tobias Müller <troplin@bluewin.ch> - 2011-12-13 07:13 +0000
  Re: Template argument deduction and function pointers "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-12 13:42 +0000
  Re: Template argument deduction and function pointers Leigh Johnston <leigh@i42.co.uk> - 2011-12-12 14:01 +0000
    Re: Template argument deduction and function pointers Tobias Müller <troplin@bluewin.ch> - 2011-12-13 07:13 +0000
      Re: Template argument deduction and function pointers Leigh Johnston <leigh@i42.co.uk> - 2011-12-13 12:18 +0000

csiph-web