[Bug 248190] std::fabs is missing from <cstdlib> in 12.1-STABLE for C++17+
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 22 19:33:04 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248190
Yuri Victorovich <yuri at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|std::fabs is missing in |std::fabs is missing from
|12.1-STABLE |<cstdlib> in 12.1-STABLE
| |for C++17+
--- Comment #2 from Yuri Victorovich <yuri at freebsd.org> ---
(In reply to Yuri Pankov from comment #1)
The link says:
Defined in header <cmath>
Defined in header <cstdlib> (since C++17)
Thank you for pointing this out.
I changed the subject. std::fabs is only missing from <cstdlib> for C++17+.
> #include <cstdlib>
>
> int main() {
> std::fabs(1.);
> }
> $ c++ -std=c++17 -o fabs fabs.cpp
> fabs.cpp:4:7: error: no member named 'fabs' in namespace 'std'
> std::fabs(1.);
> ~~~~~^
> 1 error generated.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list