[Bug 248190] std::fabs is missing in 12.1-STABLE
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jul 22 18:58:27 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248190
Bug ID: 248190
Summary: std::fabs is missing in 12.1-STABLE
Product: Base System
Version: 12.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: standards
Assignee: standards at FreeBSD.org
Reporter: yuri at freebsd.org
Here https://en.cppreference.com/w/cpp/numeric/math/fabs it says that std::fabs
is defined since C++11.
However, this program fails:
> #include <cstdlib>
>
> int main() {
> std::fabs(1.);
> }
> $ c++ -std=c++11 -o fabs fabs.cpp
> fabs.cpp:5:7: error: no member named 'fabs' in namespace 'std'
> std::fabs(1.);
> ~~~~~^
FreeBSD 12.1-STABLE r359625
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-standards
mailing list