From e31b0c1803d976e29b258c7307e32fd0d63821e5 Mon Sep 17 00:00:00 2001 From: Yasha Jannoo Date: Thu, 12 Sep 2019 00:41:34 +0100 Subject: Fix ill-formed and warning-causing new overloaded and delete operators From VS2015 onwards, overloaded new and delete operators were no longer allowed to be declared inline. See https://docs.microsoft.com/en-us/cpp/porting/visual-cpp-what-s-new-2003-through-2015?view=vs-2019. As a consequence of moving the definitions into source files, we cannot simply include the headers in the files they are required in without also either creating a static library or including the source files in the projects. Do the latter as the pattern fits other examples of dependencies across projects in the solution. The overloaded operator definitions could be made neater in a future change. For now they are written as their declarations appear in the header file, with the same ifdefs as in the header file. --- NetEx/NetEx.vcxproj | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NetEx/NetEx.vcxproj') diff --git a/NetEx/NetEx.vcxproj b/NetEx/NetEx.vcxproj index 9833b25..020eb22 100644 --- a/NetEx/NetEx.vcxproj +++ b/NetEx/NetEx.vcxproj @@ -543,6 +543,7 @@ + @@ -559,6 +560,7 @@ + -- cgit v1.1