skypjack 5 месяцев назад
Родитель
Сommit
94cd89a72a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      docs/md/entity.md

+ 2 - 2
docs/md/entity.md

@@ -2156,13 +2156,13 @@ It means that views and groups generated by a const registry also propagate the
 constness to the types involved. As an example:
 
 ```cpp
-entt::view<const position, const velocity> view = std::as_const(registry).view<const position, const velocity>();
+entt::view<entt::get_t<const position, const velocity>> view = std::as_const(registry).view<const position, const velocity>();
 ```
 
 Consider the following definition for a non-const view instead:
 
 ```cpp
-entt::view<position, const velocity> view = registry.view<position, const velocity>();
+entt::view<entt::get_t<position, const velocity>> view = registry.view<position, const velocity>();
 ```
 
 In the example above, `view` is used to access either read-only or writable