diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | 09d58c0f866ac64edd1b9535e649608ee29ab8b1 (patch) | |
tree | 2d02e2292187b691ed0f38ea339290fbb93b1187 /include | |
parent | 83b43bb38c0c2cd5e3cec502d06acfa1b32b26ca (diff) | |
download | qtlocation-mapboxgl-09d58c0f866ac64edd1b9535e649608ee29ab8b1.tar.gz |
[core] Fix bugprone-forwarding-reference-overload errors in header files
This was a false positive.
As reported by clang-tidy-8.
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/conversion_impl.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 <typename T> + // NOLINTNEXTLINE(bugprone-forwarding-reference-overload) Convertible(T&& value) : vtable(vtableForType<std::decay_t<T>>()) { static_assert(sizeof(Storage) >= sizeof(std::decay_t<T>), "Storage must be large enough to hold value type"); new (static_cast<void*>(&storage)) std::decay_t<T>(std::forward<T>(value)); |