Просмотр исходного кода

container: static constexpr -> inline constexpr - see #1337

skypjack 1 неделя назад
Родитель
Сommit
b11c8df43f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/entt/container/dense_map.hpp
  2. 1 1
      src/entt/container/dense_set.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -25,7 +25,7 @@ namespace entt {
 /*! @cond ENTT_INTERNAL */
 namespace internal {
 
-static constexpr stl::size_t dense_map_placeholder_position = ~static_cast<stl::size_t>(0);
+inline constexpr stl::size_t dense_map_placeholder_position = ~static_cast<stl::size_t>(0);
 
 template<typename Key, typename Type>
 struct dense_map_node final {

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -23,7 +23,7 @@ namespace entt {
 /*! @cond ENTT_INTERNAL */
 namespace internal {
 
-static constexpr stl::size_t dense_set_placeholder_position = ~static_cast<stl::size_t>(0);
+inline constexpr stl::size_t dense_set_placeholder_position = ~static_cast<stl::size_t>(0);
 
 template<typename It>
 class dense_set_iterator final {