|
Boost : |
From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-10-07 23:18:38
Aleksey Gurtovoy wrote:
> #include <boost/mpl/lambda.hpp>
> #include <boost/mpl/apply.hpp>
> #include <boost/mpl/aux_/void_spec.hpp>
>
> namespace mpl = boost::mpl;
> using mpl::_;
>
> template <typename T>
> struct ownership
> {
> typedef ownership type;
> BOOST_MPL_AUX_LAMBDA_SUPPORT(1, ownership, (T))
> };
>
#if defined(__BORLANDC__)
> namespace boost { namespace mpl {
> BOOST_MPL_AUX_VOID_SPEC(1, ownership)
> }}
#endif
> int main()
> {
> typedef mpl::lambda<ownership<_> >::type f_;
> mpl::apply<f_, int>::type t;
> }
>
A better solution is coming soon :).
Aleksey
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk