diff --git a/tests/daemon/mgmt/face-manager.t.cpp b/tests/daemon/mgmt/face-manager.t.cpp index 6d25143e..68783992 100644 --- a/tests/daemon/mgmt/face-manager.t.cpp +++ b/tests/daemon/mgmt/face-manager.t.cpp @@ -63,7 +63,7 @@ class FaceManagerFixture : public ManagerFixtureWithAuthenticator */ template shared_ptr - addFace(unsigned int flags = 0, Args&&... args) + addFace(unsigned int flags, Args&&... args) { auto face = make_shared(std::forward(args)...); m_faceTable.add(face); @@ -91,6 +91,15 @@ class FaceManagerFixture : public ManagerFixtureWithAuthenticator return face; } + // We cannot combine this overload with the previous one + // because clang 10 (and earlier) doesn't like it. + // This is a workaround for https://github.com/llvm/llvm-project/issues/23403 + shared_ptr + addFace() + { + return addFace(0); + } + private: template static void