Re: 'lround' is not a member of 'std'
Martin Husemann <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Jun 08, 2024 at 04:53:59PM +0200, Thomas Klausner wrote:
> Is there something we need to fix in NetBSD here?
Seems to work for me:
--8<--
[/tmp] martin@martins > c++ -Wall -O2 -o blah test.cc
[/tmp] martin@martins > ./blah
[/tmp] martin@martins > echo $status
2
[/tmp] martin@martins > cat test.cc
#include <cmath>
int main(int argc, char **argv)
{
long double v = 1.7;
auto a = std::lround(v);
return a;
}
-->8--
Martin