Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-06 13:42:04


AMDG

joel falcou wrote:
> Hmm is there any article or paper explaining the trick and why it's
> different of the classic idiom using the ellipsis argument to
> discrimiante the correct call to the inner function.

Operators cannot be overloaded with the ellipsis.

> IN the same vein, why using a static reference instead of constructing
> the object in place in the sizeof operator ?

Using a reference avoids requiring T to have a default constructor.

In Christ,
Steven Watanabe


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