diff options
author | Dan Albert <danalbert@google.com> | 2019-03-07 11:12:28 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2019-03-07 11:12:28 -0800 |
commit | f2491995a2826fac513617ca747f8bd200ef90b6 (patch) | |
tree | 6945af1dae4e2d68ecd503ba762591d26c6a4b0f /docs | |
parent | d85fd8b2af86caaf46eca608d79f68a61a52fbbb (diff) | |
download | ndk-f2491995a2826fac513617ca747f8bd200ef90b6.tar.gz |
Add a note about non-polymorphic types to the FAQ.
Test: None
Bug: None
Change-Id: I8d663d4b1076dc9600c7cb830e4b7bb789ecc292
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 |