Opened 11 years ago

Closed 10 years ago

#6649 closed Bugs (duplicate)

when i try to implement bimap, i have the following compiling error.

Reported by: kuo7288@… Owned by: Matias Capeletto
Milestone: To Be Determined Component: bimap
Version: Boost 1.48.0 Severity: Problem
Keywords: fpclassify cmath bimap Cc:

Description

../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

Change History (2)

in reply to:  description comment:1 by kuo7288@…, 11 years ago

Replying to 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

comment:2 by Matias Capeletto, 10 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.