0.2.0-dev Download ZIP
18 lines ·443 B Raw
| 1 | // Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) |
| 2 | // SPDX-FileCopyrightText: 2021 Jorrit Rouwe |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | JPH_NAMESPACE_BEGIN |
| 8 | |
| 9 | /// Class that makes another class non-copyable. Usage: Inherit from NonCopyable. |
| 10 | class JPH_EXPORT NonCopyable |
| 11 | { |
| 12 | public: |
| 13 | NonCopyable() = default; |
| 14 | NonCopyable(const NonCopyable &) = delete; |
| 15 | void operator = (const NonCopyable &) = delete; |
| 16 | }; |
| 17 | |
| 18 | JPH_NAMESPACE_END |