diff options
author | Brad King <brad.king@kitware.com> | 2018-11-14 14:28:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-11-14 19:28:57 (GMT) |
commit | 06cc050c1fa6141e5c376230ef7ab19ba2942a08 (patch) | |
tree | c78bede8138a95b69f99bee9947c69f1ae0798f8 /Help/dev | |
parent | 117272412e9dee1a1595718590a48e4c6750df59 (diff) | |
download | CMake-06cc050c1fa6141e5c376230ef7ab19ba2942a08.zip CMake-06cc050c1fa6141e5c376230ef7ab19ba2942a08.tar.gz CMake-06cc050c1fa6141e5c376230ef7ab19ba2942a08.tar.bz2 |
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`.
Diffstat (limited to 'Help/dev')
-rw-r--r-- | Help/dev/source.rst | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Help/dev/source.rst b/Help/dev/source.rst index 57de818..4a1fdc8 100644 --- a/Help/dev/source.rst +++ b/Help/dev/source.rst @@ -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 ================== |