Skip to content

Commit

Permalink
attempt to make gcc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstink committed Jan 10, 2025
1 parent 5bddcb3 commit 00b81ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions symmetri/gui/load_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ void loadPetriNet(const std::filesystem::path& file) {

m.colors = symmetri::Token::getColors();

// For GCC, we copy the priority table because of some weird GCC13/14 bug...
#ifdef __GNUC__
m.net.priority.insert(m.net.priority.end(), new_net.priority.begin(),
new_net.priority.end());
#else
append(std::move(new_net.priority), m.net.priority);
#endif

append(std::move(new_net.transition), m.net.transition);
append(std::move(new_net.place), m.net.place);
append(std::move(new_net.output_n), m.net.output_n);
Expand Down

0 comments on commit 00b81ac

Please sign in to comment.