summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-developer.7.rst
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-09 18:51:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-17 18:18:11 (GMT)
commitc697c1fafef16f00e4ec6a72d12eb3a43c01879a (patch)
tree21e55c110bed68bf92bb97928a0aba27c14d70b8 /Help/manual/cmake-developer.7.rst
parent5c635fa62414c408d04046079a5c0dac43f7cce2 (diff)
downloadCMake-c697c1fafef16f00e4ec6a72d12eb3a43c01879a.zip
CMake-c697c1fafef16f00e4ec6a72d12eb3a43c01879a.tar.gz
CMake-c697c1fafef16f00e4ec6a72d12eb3a43c01879a.tar.bz2
cmTarget: Remove template argument workaround.
Pre-C++98 compilers required that the template argument be used in the function parameters. Those compilers are no longer supported as hosts, so drop the workaround.
Diffstat (limited to 'Help/manual/cmake-developer.7.rst')
-rw-r--r--Help/manual/cmake-developer.7.rst28
1 files changed, 0 insertions, 28 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst
index e18250c..7bffa42 100644
--- a/Help/manual/cmake-developer.7.rst
+++ b/Help/manual/cmake-developer.7.rst
@@ -28,34 +28,6 @@ Some implementations have a ``std::auto_ptr`` which can not be used as a
return value from a function. ``std::auto_ptr`` may not be used. Use
``cmsys::auto_ptr`` instead.
-Template Parameter Defaults
----------------------------
-
-On ancient compilers, C++ template must use template parameters in function
-arguments. If no parameter of that type is needed, the common workaround is
-to add a defaulted pointer to the type to the templated function. However,
-this does not work with other ancient compilers:
-
-.. code-block:: c++
-
- template<typename PropertyType>
- PropertyType getTypedProperty(cmTarget* tgt, const char* prop,
- PropertyType* = 0) // Wrong
- {
-
- }
-
-.. code-block:: c++
-
- template<typename PropertyType>
- PropertyType getTypedProperty(cmTarget* tgt, const char* prop,
- PropertyType*) // Ok
- {
-
- }
-
-and invoke it with the value ``0`` explicitly in all cases.
-
size_t
------