Boost logo

Boost Users :

Subject: [Boost-users] BOOST_PP_ARRAY_PUSH_BACK
From: petros (pmamales_at_[hidden])
Date: 2012-03-22 16:11:22


Hi,
the following piece of code:

#include <boost/preprocessor/array.hpp>
#include <boost/preprocessor/array/push_back.hpp>
#include <boost/preprocessor/iteration/local.hpp>

#define barfoo (2, (1, 2) )
BOOST_PP_ARRAY_PUSH_BACK( barfoo, 3 )

gived the following compilation error ( MSVC2010, win7 ) :

1>Build started 3/22/2012 4:06:39 PM.
1>ClCompile:
1> opexp.cpp
1>opexp.cpp(6): error C2059: syntax error : 'constant'

Any ideas why this happens ?
Any help will be greatly appreciated.
TIA,
Petros



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