rundel / carto-generator

C++ Parser for the Carto stylesheet language
15 stars 1 forks source link

compile error: too many arguments to BOOST_FUSION_ADAPT_ADT #1

Closed springmeyer closed 13 years ago

springmeyer commented 13 years ago

Using the just released boost 1.47 release.

Maybe something changed before these released svn?

clang++ -c -g -I./include -I/usr/local/include -DHAVE_JPEG -ansi -Wall -Wno-unused-function -Wno-uninitialized -Wno-array-bounds -Wno-parentheses -Wno-char-subscripts -ftemplate-depth-200 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -I/opt/icu/include/ -I/opt/boost-47-static/include -I/Library/Frameworks/UnixImageIO.framework/Headers -I/Library/Frameworks/GDAL.framework/Versions/1.8/Headers -I/usr/local/pgsql-9.0/include -I/usr/local/include -I/usr/local/Cellar/geos/3.3.0/include -I/usr/include/ -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 -DLIBTOOL_SUPPORTS_ADVISE -DMAPNIKDIR=\"/usr/local/lib/mapnik2/input\" example.cpp -o example.o
In file included from example.cpp:10:
In file included from ./include/gen_map.hpp:12:
In file included from ./include/gen_layer.hpp:15:
./include/gen_style.hpp:32:1: error: too many arguments to function call, expected 1, have 2
BOOST_FUSION_ADAPT_ADT(
^~~~~~~~~~~~~~~~~~~~~~~
In file included from example.cpp:10:
In file included from ./include/gen_map.hpp:10:
In file included from ./include/gen_utility.hpp:4:
In file included from /opt/boost-47-static/include/boost/fusion/include/adapt_adt.hpp:11:
/opt/boost-47-static/include/boost/fusion/adapted/adt/adapt_adt.hpp:56:5: note: instantiated from:
    BOOST_FUSION_ADAPT_STRUCT_BASE(                                             \
    ^
In file included from example.cpp:10:
In file included from ./include/gen_map.hpp:5:
In file included from /opt/boost-47-static/include/boost/fusion/include/adapt_struct.hpp:11:
In file included from /opt/boost-47-static/include/boost/fusion/adapted/struct/adapt_struct.hpp:20:
/opt/boost-47-static/include/boost/fusion/adapted/struct/detail/adapt_base.hpp:188:13: note: instantiated from:
            BOOST_PP_SEQ_FOR_EACH_I_R(                                          \
            ^
<scratch space>:100:1: note: instantiated from:
BOOST_PP_FOR_1
^
note: (skipping 19 contexts in backtrace; use -fmacro-backtrace-limit=0 to see all)
springmeyer commented 13 years ago

@rundel - any ideas on this one? I'd be happy to build a binary for this as well if I can get it compiled. I'm using the boost 1.47 release compiled statically.

rundel commented 13 years ago

Sorry about that, fixed it locally but never pushed back to github, try the newest revision