From e1a537e5478dc93b06b97874c56252dc55ef4902 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 20 Jan 2021 15:20:51 +0100 Subject: [PATCH] doc: minor changes --- TODO | 1 + docs/md/meta.md | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 7c8b6014c..bbd2ed578 100644 --- a/TODO +++ b/TODO @@ -18,6 +18,7 @@ - ... WIP: +* HP: meta, type.func(name) * HP: paginate pools * HP: headless (sparse set only) view * HP: pass the registry to pools, basic poly storage should have only component member diff --git a/docs/md/meta.md b/docs/md/meta.md index 362ecefb0..4f487ef36 100644 --- a/docs/md/meta.md +++ b/docs/md/meta.md @@ -625,7 +625,8 @@ query the meta type or verify that the returned object is valid. For example, invalid instances are returned when the wrapped object isn't a pointer-like type.
Note that dereferencing a pointer-like object returns an instance of `meta_any` -which refers to the pointed object and allows users to modify it directly. +which refers to the pointed object and allows users to modify it directly +(unless the returned element is const, of course). In general, _dereferencing_ a pointer-like type boils down to a `*ptr`. However, `EnTT` also supports classes that don't offer an `operator*`. In particular: @@ -641,8 +642,8 @@ In general, _dereferencing_ a pointer-like type boils down to a `*ptr`. However, ``` * When not in control of the type's namespace, it's possible to inject into the - `entt` namespace a specialization of `adl_meta_pointer_like` class template to - bypass the adl lookup as a whole: + `entt` namespace a specialization of the `adl_meta_pointer_like` class + template to bypass the adl lookup as a whole: ```cpp template