Boost logo

Boost :

From: Cromwell Enage (sponage_at_[hidden])
Date: 2006-01-14 12:19:22


--- Arkadiy Vertleyb wrote:
> "Cromwell Enage" wrote
> > I'm also studying file iteration so I can see if
> > that helps me out.
>
> File iteration works good with typeof, and you don't
> have to explicitly specify IDs. The only problem --
> you can't use the file iteration in a macro.

Understood.

> The following example works (vc71):
>
> ----------------
> #define BOOST_TYPEOF_COMPLIANT
> #include <boost/typeof/typeof.hpp>
>
> template<int n, short m> class x
> {};
>
> #define seq (int)(short)
> #define MACRO(z, n, text) (BOOST_PP_SEQ_ELEM(n,
> text))
> BOOST_TYPEOF_REGISTER_TEMPLATE(x,
> BOOST_PP_REPEAT(BOOST_PP_SEQ_SIZE(seq), MACRO,
> seq))
>
> typedef BOOST_TYPEOF((x<1, 2>())) type;
> type y;
>
> int main()
> {}

Okay, I'll give it a roll.

                              Cromwell D. Enage

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk