QTypeInfo: remove docs about how Qt's autodetection works
I don't think we should document *exactly* how we autodetect primitive/relocatable types: we've been changing the detection across Qt versions because sometimes we realized that it was wrong. Moreover, no one else but us should be using the traits in question (in other words: QTypeInfo itself isn't public API). Pick-to: 6.5 6.2 Change-Id: Ie6e763f152e7dc0f6ce58869dbbd529240d2a546 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit ae361f00b3f4827e62a19cc451227c9892b51f2e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
bc9d2230d8
commit
5ba6f77f8c
@ -41,15 +41,8 @@
|
||||
|
||||
\snippet code/src_corelib_global_qglobal.cpp 39
|
||||
|
||||
Qt will try to detect the class of a type using
|
||||
\l {https://en.cppreference.com/w/cpp/types/is_trivial} {std::is_trivial_v<T>}
|
||||
to identify primitive
|
||||
types and it will require both
|
||||
\l {https://en.cppreference.com/w/cpp/types/is_trivially_copyable} {std::is_trivially_copyable_v<T>}
|
||||
and
|
||||
\l {https://en.cppreference.com/w/cpp/types/is_destructible} {std::is_trivially_destructible_v<T>}
|
||||
to identify relocatable types.
|
||||
Use this macro to tune the behavior.
|
||||
Qt will try to detect the class of a type using standard C++ type traits;
|
||||
use this macro to tune the behavior.
|
||||
For instance many types would be candidates for Q_RELOCATABLE_TYPE despite
|
||||
not being trivially-copyable.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user