Thread: no member named 'isinf' in namespace 'std'
|
Replies:
7
-
Last Post:
Jun 11, 2017 1:16 PM
Last Post By: Bruce Salzman
|
|
|
Posts:
56
Registered:
8/23/02
|
|
Trying to compile MPFR C++ ( http://www.holoborodko.com/pavel/mpfr/)
with Berlin 10.1 Update 2 clang. I get
[bcc64 Error] mpreal.h(2684): no member named 'isinf' in namespace 'std'
??
--
Bruce
|
|
|
Posts:
100
Registered:
7/15/05
|
|
Trying to compile MPFR C++ ( http://www.holoborodko.com/pavel/mpfr/)
with Berlin 10.1 Update 2 clang. I get
[bcc64 Error] mpreal.h(2684): no member named 'isinf' in namespace 'std'
??
--
Bruce
Did you #include <cmath>?
|
|
|
|
Posts:
56
Registered:
8/23/02
|
|
Greg Reese wrote:
Trying to compile MPFR C++ ( http://www.holoborodko.com/pavel/mpfr/)
with Berlin 10.1 Update 2 clang. I get
[bcc64 Error] mpreal.h(2684): no member named 'isinf' in namespace
'std'
??
--
Bruce
Did you #include <cmath>?
Yes, actually. The mpreal.h file itself includes:
#include <string>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <cfloat>
#include <cmath>
#include <cstring>
#include <limits>
#include <cstdint>
#include <complex>
#include <algorithm>
--
Bruce
|
|
|
|
Posts:
75
Registered:
3/6/08
|
|
|
|
|
Posts:
75
Registered:
3/6/08
|
|
On 3/31/2017 4:18 PM, Josh Kelley wrote:
Forgot to mention - although std::isinf is missing, C++Builder does
provide non-standard alternatives, like _isinf in float.h.
--
Josh Kelley
https://www.joshkel.com/
|
|
|
|
Posts:
56
Registered:
8/23/02
|
|
Josh Kelley wrote:
On 3/31/2017 4:18 PM, Josh Kelley wrote:
Forgot to mention - although std::isinf is missing, C++Builder does
provide non-standard alternatives, like _isinf in float.h.
Thanks, Josh. I'll find out soon if 10.2 has improved the situation. If
not, I can try to mangage with _isinf().
--
Bruce
|
|
|
|
Posts:
56
Registered:
8/23/02
|
|
Bruce Salzman wrote:
Josh Kelley wrote:
On 3/31/2017 4:18 PM, Josh Kelley wrote:
Forgot to mention - although std::isinf is missing, C++Builder does
provide non-standard alternatives, like _isinf in float.h.
Thanks, Josh. I'll find out soon if 10.2 has improved the situation.
If not, I can try to mangage with _isinf().
Update, still not there in Tokyo.
|
|
|
|
Posts:
56
Registered:
8/23/02
|
|
Bruce Salzman wrote:
Josh Kelley wrote:
On 3/31/2017 4:18 PM, Josh Kelley wrote:
Forgot to mention - although std::isinf is missing, C++Builder does
provide non-standard alternatives, like _isinf in float.h.
Thanks, Josh. I'll find out soon if 10.2 has improved the situation.
If not, I can try to mangage with _isinf().
Update, still not there in Tokyo.
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us