skypjack преди 5 месеца
родител
ревизия
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