Boost logo

Boost Users :

Subject: [Boost-users] [preprocessor] Is there an equivalent of "delayed expansion"?
From: Mostafa (mostafa_working_away_at_[hidden])
Date: 2013-04-14 05:09:19


Is there an equivalent in boost for delaying the expansion of a macro? For
example, I want EAT to act on TSEQ2, so I have to use trick on line 4.

#define TSEQ2 (w)(x)(y)(z)(a)(b)(c)(d 2)
#define IDENTITY(x) x
#define EAT(x)
IDENTITY(IDENTITY(EAT)TSEQ2)

Thanks,

Mostafa


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