tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 'lround' is not a member of 'std'

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:

[/tmp] martin@martins > c++ -Wall -O2 -o blah 
[/tmp] martin@martins > ./blah 
[/tmp] martin@martins > echo $status
[/tmp] martin@martins > cat 
#include <cmath>

int main(int argc, char **argv)
	long double v = 1.7;
	auto a = std::lround(v);
	return a;


Home | Main Index | Thread Index | Old Index