From 09d58c0f866ac64edd1b9535e649608ee29ab8b1 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 27 Mar 2020 18:30:35 +0200 Subject: [core] Fix bugprone-forwarding-reference-overload errors in header files This was a false positive. As reported by clang-tidy-8. --- include/mbgl/style/conversion_impl.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mbgl/style/conversion_impl.hpp b/include/mbgl/style/conversion_impl.hpp index 8652a355f1..1a2d13d7e2 100644 --- a/include/mbgl/style/conversion_impl.hpp +++ b/include/mbgl/style/conversion_impl.hpp @@ -96,6 +96,7 @@ class ConversionTraits; class Convertible { public: template + // NOLINTNEXTLINE(bugprone-forwarding-reference-overload) Convertible(T&& value) : vtable(vtableForType>()) { static_assert(sizeof(Storage) >= sizeof(std::decay_t), "Storage must be large enough to hold value type"); new (static_cast(&storage)) std::decay_t(std::forward(value)); -- cgit v1.2.1