Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: no member named 'isinf' in namespace 'std'



Permlink Replies: 7 - Last Post: Jun 11, 2017 1:16 PM Last Post By: Bruce Salzman
Bruce Salzman


Posts: 56
Registered: 8/23/02
no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 28, 2017 8:50 AM
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
Greg Reese

Posts: 100
Registered: 7/15/05
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 28, 2017 9:40 AM   in response to: Bruce Salzman in response to: Bruce Salzman
Bruce Salzman 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>?
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 28, 2017 9:54 AM   in response to: Greg Reese in response to: Greg Reese
Greg Reese wrote:

Bruce Salzman 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
Josh Kelley

Posts: 75
Registered: 3/6/08
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 31, 2017 1:18 PM   in response to: Bruce Salzman in response to: Bruce Salzman
On 3/28/2017 11:50 AM, Bruce Salzman 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'

??

std::isinf was added in C++11. Unfortunately, even though the Clang
compiler handles the C++11 language pretty well, C++11 library updates
are still missing. See https://quality.embarcadero.com/browse/RSP-17670
for std::isinf and https://quality.embarcadero.com/browse/RSP-13759 for
another example.

--
Josh Kelley
https://www.joshkel.com/
Josh Kelley

Posts: 75
Registered: 3/6/08
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 31, 2017 1:19 PM   in response to: Josh Kelley in response to: Josh Kelley
On 3/31/2017 4:18 PM, Josh Kelley wrote:
std::isinf was added in C++11. Unfortunately, even though the Clang
compiler handles the C++11 language pretty well, C++11 library updates
are still missing. See https://quality.embarcadero.com/browse/RSP-17670
for std::isinf and https://quality.embarcadero.com/browse/RSP-13759 for
another example.

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/
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 1, 2017 8:42 PM   in response to: Josh Kelley in response to: Josh Kelley
Josh Kelley wrote:

On 3/31/2017 4:18 PM, Josh Kelley wrote:
std::isinf was added in C++11. Unfortunately, even though the Clang
compiler handles the C++11 language pretty well, C++11 library
updates are still missing. See
https://quality.embarcadero.com/browse/RSP-17670 for std::isinf and
https://quality.embarcadero.com/browse/RSP-13759 for another
example.

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
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 6, 2017 1:45 PM   in response to: Bruce Salzman in response to: Bruce Salzman
Bruce Salzman wrote:

Josh Kelley wrote:

On 3/31/2017 4:18 PM, Josh Kelley wrote:
std::isinf was added in C++11. Unfortunately, even though the
Clang compiler handles the C++11 language pretty well, C++11
library updates are still missing. See
https://quality.embarcadero.com/browse/RSP-17670 for std::isinf
and https://quality.embarcadero.com/browse/RSP-13759 for another
example.

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.
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: no member named 'isinf' in namespace 'std'
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 11, 2017 1:16 PM   in response to: Bruce Salzman in response to: Bruce Salzman
Bruce Salzman wrote:

Josh Kelley wrote:

On 3/31/2017 4:18 PM, Josh Kelley wrote:
std::isinf was added in C++11. Unfortunately, even though the
Clang compiler handles the C++11 language pretty well, C++11
library updates are still missing. See
https://quality.embarcadero.com/browse/RSP-17670 for std::isinf
and https://quality.embarcadero.com/browse/RSP-13759 for another
example.

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)

Server Response from: ETNAJIVE02