diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-07 20:28:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-07 20:28:20 +0000 |
commit | 96c8c44198dbe4ae098dbc395d07432b27a0159f (patch) | |
tree | b91900bf053513196c7c79156ca82dd8c8bded61 /docs | |
parent | 18901d6ad517549765e3eed4175fbd3a00de379b (diff) | |
parent | f2491995a2826fac513617ca747f8bd200ef90b6 (diff) | |
download | ndk-96c8c44198dbe4ae098dbc395d07432b27a0159f.tar.gz |
Merge "Add a note about non-polymorphic types to the FAQ."
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/common_problems.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/user/common_problems.md b/docs/user/common_problems.md index 2931ebf51..4778a60ee 100644 --- a/docs/user/common_problems.md +++ b/docs/user/common_problems.md @@ -133,6 +133,10 @@ loading libraries dynamically after the executable has been loaded (i.e. via merge type infos for the loaded libraries. When this happens, the two types are not considered equal. +Note that for non-polymorphic types, the type cannot have a key function. For +non-polymorphic types, RTTI is unnecessary, as `std::is_same` can be used to +determine type equality at compile time. + [C++ ABI]: https://itanium-cxx-abi.github.io/cxx-abi/abi.html#rtti [Issue 533]: https://github.com/android-ndk/ndk/issues/533#issuecomment-335977747 [key function]: https://itanium-cxx-abi.github.io/cxx-abi/abi.html#vague-vtable |