
--- 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