From c2af447d445d87bf4b09a051b2cf78d39667dce7 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 20 Nov 2014 23:15:16 +0100 Subject: Remove disallowed feature which Borland did not accept. --- Help/manual/cmake-developer.7.rst | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index 34e3225..0b06173 100644 --- a/Help/manual/cmake-developer.7.rst +++ b/Help/manual/cmake-developer.7.rst @@ -73,28 +73,6 @@ The return value of ``find()`` must be assigned to an intermediate // ... } -Char Array to ``string`` Conversions with Algorithms ----------------------------------------------------- - -In some implementations, algorithms operating on iterators to a container of -``std::string`` can not accept a ``const char*`` value: - -.. code-block:: c++ - - const char* dir = /*...*/; - std::vector vec; - // ... - std::binary_search(vec.begin(), vec.end(), dir); // Wrong - -The ``std::string`` may need to be explicitly constructed: - -.. code-block:: c++ - - const char* dir = /*...*/; - std::vector vec; - // ... - std::binary_search(vec.begin(), vec.end(), std::string(dir)); // Ok - std::auto_ptr ------------- -- cgit v0.12