[MacPorts] #59822: cmake @3.16.1: error: no matching constructor for initialization of 'const std::vector<ExpectedSpec>'
MacPorts
noreply at macports.org
Sat Dec 14 13:52:45 UTC 2019
#59822: cmake @3.16.1: error: no matching constructor for initialization of 'const
std::vector<ExpectedSpec>'
----------------------+------------------------------------
Reporter: letaage | Owner: michaelld
Type: defect | Status: assigned
Priority: High | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: mountainlion mavericks
Port: cmake |
----------------------+------------------------------------
Comment (by Ionic):
Aaaand that was wrong again. Apple-clang 6.0 does support `gnu++1y` as a
parameter to `-std`.
The issue seems to be tries to explicitly initialize the `std::map`
structure inside of the `cmCTestResourceSpec` structure and older
compilers choke on that, while it works with newer ones.
If you use the universal initializer for that part, it just works with
older compilers (i.e., `{{{}}}` => `{}`).
Arguably, that's a more elegant solution anyway, but I don't understand
why the original specification can't be mapped correctly.
--
Ticket URL: <https://trac.macports.org/ticket/59822#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list