From 9810c3628793813a1722f1e3ca09b8243fce54fc Mon Sep 17 00:00:00 2001 From: Tom Lally Date: Sat, 27 Aug 2022 14:20:43 +0100 Subject: [PATCH] Copy and move constructors for clang-12, clang-14, gcc and msvc --- .../Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h index f6fc33e1..3dc3eca6 100644 --- a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h +++ b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerInternal.h @@ -119,8 +119,13 @@ struct LatteDecompilerCFInstruction cemu_assert_debug(!(instructionsALU.size() != 0 && instructionsTEX.size() != 0)); // make sure we dont accidentally added the wrong instruction type } +#if BOOST_OS_WINDOWS + LatteDecompilerCFInstruction(LatteDecompilerCFInstruction& mE) = default; + LatteDecompilerCFInstruction(LatteDecompilerCFInstruction&& mE) = default; +#else LatteDecompilerCFInstruction(const LatteDecompilerCFInstruction& mE) = default; LatteDecompilerCFInstruction(LatteDecompilerCFInstruction&& mE) = default; +#endif LatteDecompilerCFInstruction& operator=(LatteDecompilerCFInstruction&& mE) = default; };