|
Boost Users : |
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2008-08-06 07:04:37
> 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.
Comments in
http://svn.boost.org/svn/boost/trunk/boost/detail/is_incrementable.hpp
could answer some of your questions.
> IN the same vein, why using a static reference
> instead of constructing the object in place in the sizeof operator ?
Because we don't know how to construct a variable of type T.
Should we use default constructor T()? But what if it does
not have it?
Roman Perepelitsa.
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