瀏覽代碼

meta: updated doc (close #297)

Michele Caini 7 年之前
父節點
當前提交
576b931090
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/md/meta.md

+ 2 - 2
docs/md/meta.md

@@ -204,7 +204,7 @@ Moreover, it can be used as an opaque container for unmanaged objects if needed:
 
 
 ```cpp
 ```cpp
 int value;
 int value;
-entt::meta_any any{std::in_place, value};
+entt::meta_any any{entt::as_alias, value};
 ```
 ```
 
 
 In this case, the contained instance is never destroyed and users must ensure
 In this case, the contained instance is never destroyed and users must ensure
@@ -401,7 +401,7 @@ There are a few alternatives available at the moment:
       .func<&my_type::member_function, entt::as_void_t>("member"_hs);
       .func<&my_type::member_function, entt::as_void_t>("member"_hs);
   ```
   ```
 
 
-* The _as-alias_ policy, associated with the type `entt::as_alias_t`<br/>
+* The _as-alias_ policy, associated with the type `entt::as_alias_t`.<br/>
   It allows to build wrappers that act as aliases for the objects used to
   It allows to build wrappers that act as aliases for the objects used to
   initialize them. Modifying the object contained in the wrapper for which the
   initialize them. Modifying the object contained in the wrapper for which the
   _aliasing_ was requested will make it possible to directly modify the instance
   _aliasing_ was requested will make it possible to directly modify the instance