Date: Fri, 13 Jun 2025 19:51:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287510] std::is_null_pointer is missing with -std=c++11 Message-ID: <bug-287510-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287510 Bug ID: 287510 Summary: std::is_null_pointer is missing with -std=c++11 Product: Base System Version: 14.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org Compilation of this program: #include <type_traits> using std::is_null_pointer; fails with -std=c++11: > $ c++ -std=c++11 -c test.cpp > test.cpp:5:12: error: no member named 'is_null_pointer' in namespace 'std'; did you mean 'is_pointer'? > 5 | using std::is_null_pointer; > | ~~~~~^~~~~~~~~~~~~~~ > | is_pointer > /usr/include/c++/v1/__type_traits/is_pointer.h:25:29: note: 'is_pointer' declared here > 25 | struct _LIBCPP_TEMPLATE_VIS is_pointer : _BoolConstant<__is_pointer(_Tp)> {}; > | ^ > 1 error generated. It succeeds with -std=c++14. However, the docs say that it should exist from C++11: https://en.cppreference.com/w/cpp/types/is_null_pointer.html -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287510-227>
