Boost logo

Boost Users :

From: Jens Theisen (jens-theisen_at_[hidden])
Date: 2006-01-15 09:53:00


MB wrote:
> Sebastian Redl 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));
> }

So it's purpose is to abbreviate a const_cast. Still useful.

Jens


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net