skypjack 2 месяцев назад
Родитель
Сommit
d878089ecc
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      docs/md/poly.md
  2. 2 2
      docs/md/process.md

+ 2 - 2
docs/md/poly.md

@@ -230,14 +230,14 @@ For a deduced concept, inheritance is achieved in a few steps:
 ```cpp
 struct DrawableAndErasable: entt::type_list<> {
     template<typename Base>
-    struct type: typename Drawable::type<Base> {
+    struct type: Drawable::type<Base> {
         static constexpr auto base = Drawable::impl<Drawable::type<entt::poly_inspector>>::size;
         void erase() { entt::poly_call<base + 0>(*this); }
     };
 
     template<typename Type>
     using impl = entt::value_list_cat_t<
-        typename Drawable::impl<Type>,
+        Drawable::impl<Type>,
         entt::value_list<&Type::erase>
     >;
 };

+ 2 - 2
docs/md/process.md

@@ -57,8 +57,8 @@ Here is a minimal example for the sake of curiosity:
 
 ```cpp
 struct my_process: entt::process {
-    using allocator_type = typename entt::process::allocator_type;
-    using delta_type = typename entt::process::delta_type;
+    using allocator_type = entt::process::allocator_type;
+    using delta_type = entt::process::delta_type;
 
     my_process(const allocator_type &allocator, delta_type delay)
         : entt::process{allocator},