[MacPorts] #59822: cmake @3.16.1: error: no matching constructor for initialization of 'const std::vector<ExpectedSpec>'

MacPorts noreply at macports.org
Sun Dec 15 16:07:10 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):

 The first set, which explicitly initializes an `std::map` object with
 multiple full entries **must** stay as-is. All others need to be reduced
 to the universal zero initializer. My patch shows that.

 I also believe this to be a compiler bug, but if we can fix it that
 easily, why not? We probably should also upstream it. At least I don't see
 any reason for not to: the change is not a hack but adheres nicely to the
 standard.

-- 
Ticket URL: <https://trac.macports.org/ticket/59822#comment:24>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list