Boost logo

Boost Users :

Subject: [Boost-users] [preprocessor] removing parentheses
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-08-04 16:05:57


I have a single macro parameter which allows its passed value to contain
commas. Therefore the user of the macro needs parentheses around the
parameter if it contains one or more commas ( to does not have to ).
When processing this parameter in a macro I would like to remove the
outer parentheses if they are there before passing the value on for
further processing. Is there a way to do this using some preprocessor
library macro ?


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