tech-pkg archive

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

Re: geos failure on smartos



On Tue, Jun 21, 2022 at 06:16:26AM -0400, Greg Troxel wrote:
> Is it
>   - an error in C++ to pass an int to sqrt?

No, if <cmath> is included, since C++11 there even is an explicit
overload

	double sqrt(IntegralType arg)

>   - is the smartos toolchain wrongly objecting?

depends on includes, the conflict comes from usr/include/iso/math_iso.h
in the log, how does that get included?

Martin


Home | Main Index | Thread Index | Old Index