Skip to content

Commit

Permalink
Fix compile in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Nov 27, 2024
1 parent 25fa85a commit 918e0c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test-knuth-bendix-2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,8 @@ namespace libsemigroups {
TEMPLATE_TEST_CASE("hypostylic",
"[065][todd-coxeter][quick]",
KNUTH_BENDIX_TYPES) {
using words::operator+;
using namespace literals;
using words::operator+;

auto rg = ReportGuard(false);
size_t n = 2;
Expand All @@ -1508,7 +1508,9 @@ namespace libsemigroups {
REQUIRE(kb.presentation().alphabet() == std::string({0, 1}));
REQUIRE((knuth_bendix::normal_forms<word_type>(kb)
| filter([&kb](auto const& w) {
return knuth_bendix::reduce(kb, w + w) == w;
auto ww = w;
ww.insert(ww.begin(), w.begin(), w.end());
return knuth_bendix::reduce(kb, ww) == w;
})
| to_vector())
== std::vector<word_type>({{}, 0_w, 1_w, 10_w}));
Expand Down

0 comments on commit 918e0c1

Please sign in to comment.