[MacPorts] #62459: wxMaxima @21.02.0: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
MacPorts
noreply at macports.org
Tue Mar 16 04:51:09 UTC 2021
#62459: wxMaxima @21.02.0: error: unknown type name 'nullptr_t'; did you mean
'std::nullptr_t'?
-------------------------+--------------------------
Reporter: dyne2meter | Owner: MSoegtropIMC
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: elcapitan
Port: wxMaxima |
-------------------------+--------------------------
Comment (by jmroot):
This code is likely trying to get `nullptr_t` in the global namespace by
including `<stddef.h>`. Firstly, `nullptr_t` is a C++11 feature, and if a
C++11 compiler is needed to build this port, it should indicate it by
setting `compiler.cxx_standard 2011`. Secondly, `<stddef.h>` is a C
compatibility header, and using those in C++ is deprecated. So while the
headers on El Capitan may be buggy in that `<stddef.h>` doesn't provide
all the functionality it should, it's more future-proof to include
`<cstddef>` instead and use `std::nullptr_t`, which should neatly fix the
El Capitan issue as well.
--
Ticket URL: <https://trac.macports.org/ticket/62459#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list