diff --git a/src/platform/common.hpp b/src/platform/common.hpp index 0c6e2e9..dcab624 100644 --- a/src/platform/common.hpp +++ b/src/platform/common.hpp @@ -285,6 +285,8 @@ class optional { }; public: + // clang-tidy false positive + // NOLINTNEXTLINE(modernize-use-equals-default) optional() noexcept {} optional(nullopt_t) noexcept {} @@ -326,6 +328,8 @@ public: typename U = T, typename std::enable_if::type, optional>::value, int>::type = 0 > + // clang-tidy false positive + // NOLINTNEXTLINE(bugprone-forwarding-reference-overload) optional(U&& value) : holds_value(true) { new (static_cast(std::addressof(uvalue))) T(std::forward(value)); }