#include <boost/preprocessor/punctuation/is_begin_parens.hpp> #define VARDATA more_data , more_params
#define VARDATAP ( data ) more_data , more_params
#define DATA data
#define DATAP ( data ) more_data
BOOST_PP_IS_BEGIN_PARENS(VARDATA) // expands to 0, compiler error with VC8 BOOST_PP_IS_BEGIN_PARENS(VARDATAP) // expands to 1, compiler error with VC8
BOOST_PP_IS_BEGIN_PARENS(DATA) // expands to 0 BOOST_PP_IS_BEGIN_PARENS(DATAP) // expands to 1
BOOST_PP_IS_BEGIN_PARENS() // expands to 0
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)