Boost logo

Boost Users :

Subject: Re: [Boost-users] Symbol 'is_arithmetic' could not be resolved, Symbol 'is_const' could not be resolved, Symbol 'value' could not be resolved
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2012-12-20 23:25:03


> Dear Boost Users,
>
> I have a code with:
>
> BOOST_STATIC_ASSERT(::boost::is_arithmetic<T>::value);
>
> and it gives error message:
> - Symbol 'is_arithmetic' could not be resolved
> - Symbol 'value' could not be resolved
>
> and,
>
> BOOST_STATIC_ASSERT(!::boost::is_const<T>::value);
>
> and it gives error message:
> - Symbol 'value' could not be resolved
> - Symbol 'is_const' could not be resolved
>
> what should I include to get rid of these error message?
>
> I use:
> - Boost 1.46.1.
> - Compiler : Mingw with gcc
> - IDE: Eclipse Indigo Indigo Service Release 2
> - Windows XP Professional SP 3, v. 2002
>
> Any help, hints, would be highly appreciated!
>
> Best Regards,
> Tanya

Perhaps your file is missing the includes that declare
boost::is_arithmetic and boost::is_const? They are
<boost/type_traits/is_arithmetic.hpp> and
<boost/type_traits/is_const.hpp>, respectively.

We can't give any more specific help without seeing the
whole file.

Regards,
Nate
                                               


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