From 9894a9748adbcce43aa71536fc95ccda8c438ff6 Mon Sep 17 00:00:00 2001 From: uselessgoddess Date: Fri, 25 Jun 2021 18:50:12 +0300 Subject: [PATCH] [C++] 0.1.3 Removing C++20 content --- cpp/Platform.Delegates/Platform.Delegates.Delegate.h | 4 ++-- .../Platform.Delegates.TemplateLibrary.nuspec | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cpp/Platform.Delegates/Platform.Delegates.Delegate.h b/cpp/Platform.Delegates/Platform.Delegates.Delegate.h index fd9d488..b7bb0ad 100644 --- a/cpp/Platform.Delegates/Platform.Delegates.Delegate.h +++ b/cpp/Platform.Delegates/Platform.Delegates.Delegate.h @@ -169,8 +169,8 @@ namespace Platform::Delegates static bool AreBoundFunctionsEqual(const DelegateFunctionType &left, const DelegateFunctionType &right) { constexpr size_t size = sizeof(DelegateFunctionType); - std::byte leftArray[size] = { {(std::byte)0} }; - std::byte rightArray[size] = { {(std::byte)0} }; + std::byte leftArray[size] = {(std::byte)0}; + std::byte rightArray[size] = {(std::byte)0}; new (&leftArray) DelegateFunctionType(left); new (&rightArray) DelegateFunctionType(right); //PrintBytes(leftArray, rightArray, size); diff --git a/cpp/Platform.Delegates/Platform.Delegates.TemplateLibrary.nuspec b/cpp/Platform.Delegates/Platform.Delegates.TemplateLibrary.nuspec index cd97b83..57ed820 100644 --- a/cpp/Platform.Delegates/Platform.Delegates.TemplateLibrary.nuspec +++ b/cpp/Platform.Delegates/Platform.Delegates.TemplateLibrary.nuspec @@ -8,9 +8,10 @@ Refactoring to since C++17 standard. Use Delegate constructor with deductions guides instead CreateDelegate function. Fixed calling function with rvalue-reference arguments. +Removing C++20 content. First release version for conan. - 0.1.2 + 0.1.3 konard, poul250, uselessgoddess konard, poul250, uselessgoddess konard, poul250, uselessgoddess