skypjack 1 месяц назад
Родитель
Сommit
5c8d2742e3
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/entt/meta/meta.hpp

+ 1 - 0
src/entt/meta/meta.hpp

@@ -198,6 +198,7 @@ class meta_any {
             if(req == internal::meta_traits::is_pointer) {
                 if constexpr(stl::is_class_v<Type>) {
                     if(const auto &elem = any_cast<const Type &>(value.storage); elem) {
+                        // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
                         return (value.storage.policy() == any_policy::cref) ? static_cast<meta_any *>(other)->emplace<decltype(*elem)>(*elem) : static_cast<meta_any *>(other)->emplace<decltype(*const_cast<Type &>(elem))>(*const_cast<Type &>(elem));
                     }
                 } else if constexpr(!stl::is_array_v<Type> && !stl::is_void_v<stl::remove_const_t<stl::remove_pointer_t<Type>>>) {