Skip to content

Commit

Permalink
build: fix some build errors on fedora (#4979)
Browse files Browse the repository at this point in the history
* build: fix template-id-cdtor error on gcc 14

related: project-chip/connectedhomeip#33493

* build: use explicit `std::replace` from `<algorithm>`
  • Loading branch information
scarf005 authored Jul 21, 2024
1 parent 63206ad commit abfe66b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cata_arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class cata_arena
return true;
}

cata_arena<T>() = default;
cata_arena<T>( const cata_arena<T> & ) = delete;
cata_arena<T>( cata_arena<T> && ) = delete;

cata_arena() = default;

public:
cata_arena( const cata_arena<T> & ) = delete;
cata_arena( cata_arena<T> && ) = delete;

using value_type = T;

static void mark_for_destruction( T *alloc ) {
Expand Down
1 change: 1 addition & 0 deletions src/safe_reference.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
*/

#include <memory>
#include <algorithm>
#include <unordered_map>

#include "debug.h"
Expand Down

0 comments on commit abfe66b

Please sign in to comment.