diff options
author | Brad King <brad.king@kitware.com> | 2014-11-26 15:37:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-11-26 15:37:53 (GMT) |
commit | 43c93acf274d5ce6db7d9a871b983625426942bc (patch) | |
tree | 0fdc464c87a455d6fe92d3222f4df894995e075f | |
parent | 57a77fbe6934f13105f5c721ca6e5dec00002284 (diff) | |
parent | beaea609a04848e3596afe6f0e8340e923fbfe28 (diff) | |
download | CMake-43c93acf274d5ce6db7d9a871b983625426942bc.zip CMake-43c93acf274d5ce6db7d9a871b983625426942bc.tar.gz CMake-43c93acf274d5ce6db7d9a871b983625426942bc.tar.bz2 |
Merge topic 'remove-developer-forbidden-API'
beaea609 Remove note disallowing use of some string and vector API.
-rw-r--r-- | Help/manual/cmake-developer.7.rst | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index 0b06173..672c9b7 100644 --- a/Help/manual/cmake-developer.7.rst +++ b/Help/manual/cmake-developer.7.rst @@ -21,32 +21,6 @@ CMake is required to build with ancient C++ compilers and standard library implementations. Some common C++ constructs may not be used in CMake in order to build with such toolchains. -std::vector::at ---------------- - -The ``at()`` member function of ``std::vector`` may not be used. Use -``operator[]`` instead: - -.. code-block:: c++ - - std::vector<int> someVec = getVec(); - int i1 = someVec.at(5); // Wrong - int i2 = someVec[5]; // Ok - -std::string::append and std::string::clear ------------------------------------------- - -The ``append()`` and ``clear()`` member functions of ``std::string`` may not -be used. Use ``operator+=`` and ``operator=`` instead: - -.. code-block:: c++ - - std::string stringBuilder; - stringBuilder.append("chunk"); // Wrong - stringBuilder.clear(); // Wrong - stringBuilder += "chunk"; // Ok - stringBuilder = ""; // Ok - std::set const iterators ------------------------ |