|
Boost Users : |
Subject: Re: [Boost-users] Metaprogramming Question
From: Kim Barrett (kab.conundrums_at_[hidden])
Date: 2012-02-09 18:40:29
On Feb 9, 2012, at 6:04 PM, Jeremiah Willcock wrote:
> Here's a variant that might work better for that:
>
> #define MY_FANCY_ASSERT(cond, str) \
> for (bool BOOST_PP_CAT(assertcond, __LINE__) = (cond); \
> BOOST_PP_CAT(assertcond, __LINE__); \
> BOOST_PP_CAT(assertcond, __LINE__) = false) \
> format(str) % __FILE__ % __LINE__
I'd forgotten about that trick. Thank you.
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