15 Jan
2006
15 Jan
'06
4:29 p.m.
Sebastian Redl wrote:
MB wrote:
A short story is:
struct X { }; void f(X& x); void f(const X& x);
void test() { X x; { // initialize x. }
f(const_(x)); }
Here is the long story: http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2004/n1674.pdf
I don't see the connection. Are you looking for a way to simplify the code in listing 4?
Yes. 'const_' is something like an object-generator like 'make_pair'. Regards, MB p-stade.sourceforge.net