COIN-OR::LEMON - Graph Library

Opened 3 years ago

Closed 2 years ago

#654 closed defect (duplicate)

compile with c++20 standard

Reported by: Wichur Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.4 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

Hi,

I am not able to compile my project in CXX_STANDARD 20 (g++-10). I'm getting error:

error: 'lemon::ArrayMap<lemon::DigraphExtender<lemon::ListDigraphBase>, lemon::ListDigraphBase::Node, lemon::ListDigraphBase::Arc>::Allocator' {aka 'class std::allocator<lemon::ListDigraphBase::Arc>'} has no member named 'destroy'
  320 |           allocator.destroy(&(values[id]));

The reason is that std::allocator.destroy() is deprecated in C++17 and removed in C++20.

Is there any change to make Lemon work with C++20? Thanks! Best regards

Change History (1)

comment:1 Changed 2 years ago by Alpar Juttner

Resolution: duplicate
Status: newclosed

This is a duplicate of #631.

Note: See TracTickets for help on using tickets.