[MacPorts] #63980: qca-qt5 @2.3.4: error: no member named 'rand' in namespace 'std'
MacPorts
noreply at macports.org
Wed Nov 17 19:25:32 UTC 2021
#63980: qca-qt5 @2.3.4: error: no member named 'rand' in namespace 'std'
-------------------------+----------------------
Reporter: ryandesign | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: qca |
-------------------------+----------------------
Comment (by chrstphrchvz):
Replying to [comment:4 jmroot]:
> By the standard, including a C compatibility header (like `stdlib.h`)
will declare the appropriate names in the global namespace, and //may//
declare the same names in the std namespace. Fun, huh?
I didn’t notice stdlib.h being included, though I guess clang wouldn’t
suggest using C functions `rand()`/`srand()` if stdlib.h weren’t included.
--
Ticket URL: <https://trac.macports.org/ticket/63980#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list