From 768fdb269ed2e80b27e7015d3e06a5c64faf386f Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Thu, 17 Feb 2022 06:28:14 -0800 Subject: common: Add NullVisitor default constructor Addresses https://github.com/yuzu-emu/yuzu/issues/7881 to fix linux builds. `YUZU_NON_COPYABLE` deletes the `T(const T&)` constructor which will cause the implicitly defined default ctor/dtor to no-longer generate. --- src/common/telemetry.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/telemetry.h') diff --git a/src/common/telemetry.h b/src/common/telemetry.h index d38aeac99..4d632f7eb 100644 --- a/src/common/telemetry.h +++ b/src/common/telemetry.h @@ -171,6 +171,9 @@ struct VisitorInterface { struct NullVisitor final : public VisitorInterface { YUZU_NON_COPYABLE(NullVisitor); + NullVisitor() = default; + ~NullVisitor() override = default; + void Visit(const Field& /*field*/) override {} void Visit(const Field& /*field*/) override {} void Visit(const Field& /*field*/) override {} -- cgit v1.2.3