|
Boost Users : |
From: shunsuke (pstade.mb_at_[hidden])
Date: 2008-04-06 14:10:18
dan marsden wrote:
> Hi All
>
> The review of the Egg library by Shunsuke Sogame has been running for 1 week now. There has been some discussion of the library on a couple of related threads, but no reviews submitted so far. Please try and find time to submit a review of this library if possible.
Let me summarize the discussion so far.
Giovanni Piero Deretta pointed that:
adapting function macros can be removed in the case of stateless functions.
Eric Niebler pointed that:
duplicated metafunctions make users confused.
So, I'm inclined to introduce a new `static_` form.
It goes like this:
The adapting form in review version:
result_of_curry2<F>::type const c = BOOST_EGG_CURRY2({}); // stateless
is changed to a new `static_` form *without macros*:
static_< result_of<T_curry2(F)> >::type const c = {{}};
( In fact, it has been supported also in review version, but slightly cumborsome:
static_< mpl::always<result_of<T_curry2(F)>::type> >::type const c = BOOST_EGG_STATIC(); )
How do you think about this new `static_` form?
Regards,
-- Shunsuke Sogame
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