Skip to content

Commit

Permalink
Fix build with GCC 14.
Browse files Browse the repository at this point in the history
The method should not be const since it mutates the member field, which is not marked as mutable.
  • Loading branch information
ZaychukAleksey authored Jan 23, 2024
1 parent cd45dd4 commit 7496ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtl/Diff.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace dtl {
return trivial;
}

void enableTrivial () const {
void enableTrivial () {
this->trivial = true;
}

Expand Down

0 comments on commit 7496ad1

Please sign in to comment.