summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-12-31 13:37:44 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-11 16:00:56 (GMT)
commitac3d38292035a470affdd0ca9df88992916bfeee (patch)
treed15a81987888a35558b5ae006c675f2245778bc6 /Help
parent36b8de563cab1933fb332c42bca68125dd13f35a (diff)
downloadCMake-ac3d38292035a470affdd0ca9df88992916bfeee.zip
CMake-ac3d38292035a470affdd0ca9df88992916bfeee.tar.gz
CMake-ac3d38292035a470affdd0ca9df88992916bfeee.tar.bz2
Help: Remove documented restriction on find in conditions.
The necessary conversion is supported by all CMake host compilers.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-developer.7.rst26
1 files changed, 0 insertions, 26 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst
index 2f98b02..a7abb4e 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::set const iterators
-------------------------
-
-The ``find()`` member function of a ``const`` ``std::set`` instance may not be
-used in a comparison with the iterator returned by ``end()``:
-
-.. code-block:: c++
-
- const std::set<std::string>& someSet = getSet();
- if (someSet.find("needle") == someSet.end()) // Wrong
- {
- // ...
- }
-
-The return value of ``find()`` must be assigned to an intermediate
-``const_iterator`` for comparison:
-
-.. code-block:: c++
-
- const std::set<std::string>& someSet;
- const std::set<std::string>::const_iterator i = someSet.find("needle");
- if (i != propSet.end()) // Ok
- {
- // ...
- }
-
std::auto_ptr
-------------