mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 05:38:24 -05:00
Help/dev: Drop 'size_t' preference from source code guide
We now use `std::size_t` in several places and it is fully supported by C++11 compilers. Drop the recommendation to prefer plain `size_t`.
This commit is contained in:
@@ -40,13 +40,6 @@ building on older toolchains some constructs need to be handled with care:
|
||||
derived from non-copyable classes must also be made non-copyable explicitly
|
||||
with ``CM_DISABLE_COPY``.
|
||||
|
||||
* Use ``size_t`` instead of ``std::size_t``.
|
||||
|
||||
Various implementations have differing implementation of ``size_t``.
|
||||
When assigning the result of ``.size()`` on a container for example,
|
||||
the result should be assigned to ``size_t`` not to ``std::size_t``,
|
||||
``unsigned int`` or similar types.
|
||||
|
||||
Source Tree Layout
|
||||
==================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user