Boost logo

Boost Users :

Subject: Re: [Boost-users] errors in function_equal.hpp?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-08-23 14:43:57


AMDG

worldeb_at_[hidden] wrote:
> I use some library which use boost in my project. I am not familiar with c++ and boost.
> Compilation of my project shows me the next:
>
> function_equal.hpp:15: error: expected nested-name-specifier before numeric constant
> function_equal.hpp:15: error: expected `>' before numeric constant
> function_equal.hpp:16: error: expected ‘,’ or ‘...’ before numeric constant
> function_equal.hpp:16: error: ISO C++ forbids declaration of ‘parameter’ with no type
> function_equal.hpp: In function ‘bool boost::function_equal_impl(const F&, int)’:
> function_equal.hpp:17: error: ‘g’ was not declared in this scope
> function_equal.hpp: At global scope:
> function_equal.hpp:22: error: expected nested-name-specifier before numeric constant
> function_equal.hpp:22: error: expected `>' before numeric constant
> function_equal.hpp:23: error: expected ‘,’ or ‘...’ before numeric constant
> function_equal.hpp:23: error: ISO C++ forbids declaration of ‘parameter’ with no type
> function_equal.hpp: In function ‘bool boost::function_equal(const F&, int)’:
> function_equal.hpp:24: error: ‘g’ was not declared in this scope
>
> I cannot identify really if it is a problem of the boost, or the libraries which I use or...
>
> Who can comment these errors?
>

It sounds like G is defined as a macro. Whatever code
is doing this is wrong. It is certainly not Boost.
You can check this with
#ifdef G
  #error Oops, G is a macro
#endif

In Christ,
Steven Watanabe


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