Re: [Boost-bugs] [Boost C++ Libraries] #6649: when i try to implement bimap, i have the following compiling error.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6649: when i try to implement bimap, i have the following compiling error.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-05 16:17:17


#6649: when i try to implement bimap, i have the following compiling error.
--------------------------------+-------------------------------------------
  Reporter: kuo7288@… | Owner: matias
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: bimap
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords: fpclassify cmath bimap
--------------------------------+-------------------------------------------

Comment (by kuo7288@…):

 Replying to [ticket:6649 kuo7288@…]:
> ../boost/boost/functional/hash/detail/hash_float.hpp:65: error: call of
 overloaded ‘fpclassify(float&)’ is ambiguous
>
> gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cmath:497:
 note: candidates are: typename
 __gnu_cxx::__enable_if<std::__is_arithmetic::__value, int>::__type
 std::fpclassify(_Tp) [with _Tp = float]
>
> I have no clue why this is happening, i thought it was fixed
> https://svn.boost.org/trac/boost/ticket/2033

> Today I compiled with template <class T>
> inline std::size_t float_hash_value(T v)
> {
> using namespace std;
> // compilation conflict, :: was added before fpclassify to
 help out with compilation
> switch ('''::'''fpclassify(v)) {
> Can someone fix this problem please on the next release,
 std::fpclassify(v) also works
>

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6649#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC