mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
C++11: Compatibility with (C++03 => MSVC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5bcd7106b5
commit
dd0f0d6a9d
@ -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…
x
Reference in New Issue
Block a user