From a7d6e887c5ef9ac50ce5f79f09bf62844ddf011a Mon Sep 17 00:00:00 2001 From: DronCode Date: Wed, 3 Jul 2024 11:36:55 +0300 Subject: [PATCH] [0.0.19] Another try to fix build on macOS --- Cpp/include/RG3/Cpp/TypeClass.h | 3 +++ Cpp/source/TypeClass.cpp | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/Cpp/include/RG3/Cpp/TypeClass.h b/Cpp/include/RG3/Cpp/TypeClass.h index 93b792a..ec48014 100644 --- a/Cpp/include/RG3/Cpp/TypeClass.h +++ b/Cpp/include/RG3/Cpp/TypeClass.h @@ -81,6 +81,9 @@ namespace rg3::cpp // In C++ allowed to be friend of function, class, T (c++0x) and... Idk, it's really weird shit // I will support only class & struct friends (at least now) TypeBaseInfo sFriendTypeInfo {}; + + ClassFriend(); + ClassFriend(TypeBaseInfo&& sInfo); }; using ClassFriendVector = std::vector; diff --git a/Cpp/source/TypeClass.cpp b/Cpp/source/TypeClass.cpp index 56e0623..25d8199 100644 --- a/Cpp/source/TypeClass.cpp +++ b/Cpp/source/TypeClass.cpp @@ -43,6 +43,15 @@ namespace rg3::cpp return !operator==(other); } + ClassFriend::ClassFriend() + { + } + + ClassFriend::ClassFriend(rg3::cpp::TypeBaseInfo&& sInfo) + : sFriendTypeInfo(std::move(sInfo)) + { + } + TypeClass::TypeClass() = default; TypeClass::TypeClass(const std::string& name, const std::string& prettyName, const rg3::cpp::CppNamespace& aNamespace, const rg3::cpp::DefinitionLocation& aLocation, const Tags& tags, const rg3::cpp::ClassPropertyVector& aProperties, const rg3::cpp::ClassFunctionVector& aFunctions, const ClassFriendVector& aFriends, bool bIsStruct, bool bTrivialConstructible, bool bHasCopyConstructor, bool bHasCopyAssignOperator, bool bHasMoveConstructor, bool bHasMoveAssignOperator, const std::vector& parentTypes)