Date: Wed, 22 Jul 2020 18:58:26 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 248190] std::fabs is missing in 12.1-STABLE Message-ID: <bug-248190-99@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248190 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@FreeBSD.org Reporter: yuri@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> >=20 > int main() { > std::fabs(1.); > } > $ c++ -std=3Dc++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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248190-99>