C++11: Compatibility with (C++03 => MSVC)

llvm-svn: 206481
This commit is contained in:
Duncan P. N. Exon Smith 2014-04-17 18:02:36 +00:00
parent 5e471911e7
commit 0f197f154c

View File

@ -1284,9 +1284,9 @@ method will never be implemented. This enables other checks like
``-Wunused-private-field`` to run correctly on classes that contain these
methods.
To maintain compatibility with C++03, ``LLVM_DELETED_FUNCTION`` should be used
which will expand to ``= delete`` if the compiler supports it. These methods
should still be declared private. Example of the uncopyable pattern:
For compatibility with MSVC, ``LLVM_DELETED_FUNCTION`` should be used which
will expand to ``= delete`` on compilers that support it. These methods should
still be declared private. Example of the uncopyable pattern:
.. code-block:: c++