Boost logo

Boost :

Subject: Re: [boost] painless currying
From: Eric Niebler (eric_at_[hidden])
Date: 2011-08-24 12:49:07


On 8/24/2011 12:29 PM, Larry Evans wrote:
> Hi Eric,
>
> I downloaded then renamed curryable.h to currable.hpp (so my emacs
> editor would select c++ mode). I also made corresponding changes in
> source "curryable.h" -> "curryable.hpp". I'm using boost 1.46 and
> compiling the result gives an errors:
>
> In file included from
> /home/evansl/prog_dev/boost-svn/ro/boost_1_46_0/boost/preprocessor/iteration/detail/iter/forward2.hpp:50:0,
> from ./curryable.hpp:157,
> from
> /home/evansl/prog_dev/boost-svn/ro/boost_1_46_0/boost/preprocessor/iteration/detail/iter/forward1.hpp:47,
> from curryable.hpp:113,
> from curryable.cpp:1:
> ./curryable.hpp:117:1: error: macro "BOOST_PP_CHECK_2" requires 2
> arguments, but only 1 given
> ./curryable.hpp:117:1: error: macro "BOOST_PP_CHECK_2" requires 2
> arguments, but only 1 given
> ./curryable.hpp:117:1: error: pasting ")" and "BOOST_PP_CAT" does not
> give a valid preprocessing token
> ./curryable.hpp:175:1: error: macro "BOOST_PP_CHECK_2" requires 2
> arguments, but only 1 given
> ./curryable.hpp:175:1: error: macro "BOOST_PP_CHECK_2" requires 2
> arguments, but only 1 given
> ./curryable.hpp:175:1: error: pasting ")" and "BOOST_PP_CAT" does not
> give a valid preprocessing token
> In file included from
> /home/evansl/prog_dev/boost-svn/ro/boost_1_46_0/boost/preprocessor/iteration/detail/iter/forward2.hpp:55:0,
>
> What should I do to avoid those errors?

Debug it? I don't know, I don't get those errors with either msvc (10.0)
or gcc (4.3).

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk