Re: Reference To Function - When Standardized?
On 3 Feb., 23:49, "Le Chaud Lapin" <jaibudu...@gmail.com> wrote:
I did not know that it was possible to define a reference to
function. I remember a long time ago trying it with another C++
compiler and it did not work, and I have not seen anything about them
in TCPPPL 3rd Edition, so I thought that it was simply not possible,
but it turns out that they are, indeed, supported.
When did this happen? I feel like I really missed the boat.
Function types and references to functions exist quite long in the
Standard, you can already find them in the 14882 document from 1998.
One problem is: Their documentation is sparse and distributed over
the
standard, which might be the reason that not every compiler could
handle them during that time (Surely not VC6 and probably not
the Borland Compilers during that time). Pointers to functions where
so
popular at that time, that not many programmers recognized the
advantages of function references, like only-once-initialization,
necessity to
bind to an lvalue.
In "C++ Templates" from Vandevoorde and Josuttis section 22.2
describes some of their basic properties from its first edition on.
Greetings from Bremen,
Daniel
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]