Boost logo

Boost Users :

From: jkharris01 (john.harris_at_[hidden])
Date: 2002-04-04 11:39:06


I want to have some way to automatically put the right number of close parentheses on a list (using boost/preprocessor.hpp).

For instance, given this list:

#define _THE_LIST \
  BOOST_PP_LIST_CONS(red, \
  BOOST_PP_LIST_CONS(orange, \
  BOOST_PP_LIST_CONS(yellow, \
  BOOST_PP_LIST_CONS(green, \
  BOOST_PP_LIST_CONS(blue, \
  BOOST_PP_LIST_CONS(violet, \
  BOOST_PP_LIST_CONS(gray, \
  BOOST_PP_LIST_CONS(white, \
  BOOST_PP_LIST_NIL ))))))))

is there a way to automatically generate the eight close parentheses?


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