mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
C++11: Compatibility with (C++03 => MSVC)
llvm-svn: 206481
This commit is contained in:
parent
5e471911e7
commit
0f197f154c
@ -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++
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user