Boost logo

Boost Users :

Subject: Re: [Boost-users] Preprocessor Question
From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2009-11-16 12:58:29


Well,
MS says variadic macros are supported from VS2005.

I've tested other variadic macros and they're working fine, except this one.
I've tested this on gcc as well with similar results.

The problem seems to be in substitution of PP_RSEQ_N() macro in PP_NARG. If
I write all the values from 63 to 0 instead of PP_RSEQ_N, then it will
compile fine, but then the number of arguments always evaluates to 1.

I've tested this with VS2005 and VS2008.



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