diff options
author | Brad King <brad.king@kitware.com> | 2014-11-25 15:35:44 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-11-25 15:35:44 (GMT) |
commit | d52cfd129cc63708c6b2b9e561eb02c465c8cdc0 (patch) | |
tree | 7d5d2e4d70a85083bb666201435c46097146ff88 /Help/manual | |
parent | c7b9fad117a8036bb1a1bece633bacff426d30fb (diff) | |
parent | c2af447d445d87bf4b09a051b2cf78d39667dce7 (diff) | |
download | CMake-d52cfd129cc63708c6b2b9e561eb02c465c8cdc0.zip CMake-d52cfd129cc63708c6b2b9e561eb02c465c8cdc0.tar.gz CMake-d52cfd129cc63708c6b2b9e561eb02c465c8cdc0.tar.bz2 |
Merge topic 'doc-drop-borland-workaround'
c2af447d Remove disallowed feature which Borland did not accept.
Diffstat (limited to 'Help/manual')
-rw-r--r-- | Help/manual/cmake-developer.7.rst | 22 |
1 files changed, 0 insertions, 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<std::string> 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<std::string> vec; - // ... - std::binary_search(vec.begin(), vec.end(), std::string(dir)); // Ok - std::auto_ptr ------------- |