From: GreyMerlin Date: Sun, 24 Dec 2017 22:04:15 +0000 (-0800) Subject: Compile Merge subprojects w/ C++17 language rules. X-Git-Tag: 2.16.5~832^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3dc77be1e1965f2261d442be7fb811076806a7c6;p=winmerge-jp%2Fwinmerge-jp.git Compile Merge subprojects w/ C++17 language rules. * Force the **ShellExtensions**, and the various **Poco** sub-projects to be compiled with C++17 language semantics. * Use `unique_ptr<>` to replace `auto_ptr<>` * Compile **Merge** with C++17 when using the **Test* configuration. * (unrelated) `coretools.h` is not used by **ShellExtensions** --- diff --git a/Externals/poco/Foundation/Foundation.vs2017.vcxproj b/Externals/poco/Foundation/Foundation.vs2017.vcxproj index f1881a920..1540553c3 100644 --- a/Externals/poco/Foundation/Foundation.vs2017.vcxproj +++ b/Externals/poco/Foundation/Foundation.vs2017.vcxproj @@ -99,6 +99,7 @@ true Async true + stdcpp17 iphlpapi.lib;%(AdditionalDependencies) @@ -129,6 +130,7 @@ true Async true + stdcpp17 iphlpapi.lib;%(AdditionalDependencies) @@ -163,6 +165,7 @@ true Async true + stdcpp17 iphlpapi.lib;%(AdditionalDependencies) @@ -197,6 +200,7 @@ true Async true + stdcpp17 iphlpapi.lib;%(AdditionalDependencies) diff --git a/Externals/poco/Foundation/include/Poco/DynamicFactory.h b/Externals/poco/Foundation/include/Poco/DynamicFactory.h index 260d33f4e..57ecdd445 100644 --- a/Externals/poco/Foundation/include/Poco/DynamicFactory.h +++ b/Externals/poco/Foundation/include/Poco/DynamicFactory.h @@ -109,7 +109,7 @@ public: FastMutex::ScopedLock lock(_mutex); - std::auto_ptr ptr(pAbstractFactory); + std::unique_ptr ptr(pAbstractFactory); typename FactoryMap::iterator it = _map.find(className); if (it == _map.end()) _map[className] = ptr.release(); diff --git a/Externals/poco/Util/Util.vs2017.vcxproj b/Externals/poco/Util/Util.vs2017.vcxproj index 397f27ec9..9d814a851 100644 --- a/Externals/poco/Util/Util.vs2017.vcxproj +++ b/Externals/poco/Util/Util.vs2017.vcxproj @@ -98,6 +98,7 @@ true Async true + stdcpp17 ..\lib\PocoUtilmtd.lib @@ -127,6 +128,7 @@ true Async true + stdcpp17 ..\lib64\PocoUtilmtd.lib @@ -157,6 +159,7 @@ true Async true + stdcpp17 ..\lib\PocoUtilmt.lib @@ -187,6 +190,7 @@ true Async true + stdcpp17 ..\lib64\PocoUtilmt.lib diff --git a/Externals/poco/XML/XML.vs2017.vcxproj b/Externals/poco/XML/XML.vs2017.vcxproj index 6765fb920..700b6e8aa 100644 --- a/Externals/poco/XML/XML.vs2017.vcxproj +++ b/Externals/poco/XML/XML.vs2017.vcxproj @@ -98,6 +98,7 @@ true Async true + stdcpp17 ..\lib\PocoXMLmtd.lib @@ -127,6 +128,7 @@ true Async true + stdcpp17 ..\lib64\PocoXMLmtd.lib @@ -156,6 +158,7 @@ true Async true + stdcpp17 ..\lib\PocoXMLmt.lib @@ -186,6 +189,7 @@ true Async true + stdcpp17 ..\lib64\PocoXMLmt.lib diff --git a/ShellExtension/ShellExtension.vs2017.vcxproj b/ShellExtension/ShellExtension.vs2017.vcxproj index 860a7b3d5..be8bf0503 100644 --- a/ShellExtension/ShellExtension.vs2017.vcxproj +++ b/ShellExtension/ShellExtension.vs2017.vcxproj @@ -104,6 +104,7 @@ EditAndContinue Default StreamingSIMDExtensions + stdcpp17 $(OutDir)$(TargetName).dll @@ -143,6 +144,7 @@ true ProgramDatabase Default + stdcpp17 $(OutDir)$(TargetName).dll @@ -183,6 +185,7 @@ true Default StreamingSIMDExtensions + stdcpp17 $(OutDir)$(TargetName).dll @@ -222,6 +225,7 @@ Level3 true Default + stdcpp17 $(OutDir)$(TargetName).dll @@ -280,7 +284,6 @@ - diff --git a/Src/Merge.vs2017.vcxproj b/Src/Merge.vs2017.vcxproj index 5699a03e0..a9958918b 100644 --- a/Src/Merge.vs2017.vcxproj +++ b/Src/Merge.vs2017.vcxproj @@ -318,6 +318,7 @@ StreamingSIMDExtensions true Async + stdcpp14 _DEBUG;%(PreprocessorDefinitions) @@ -431,6 +432,7 @@ Default true Async + stdcpp14 _DEBUG;%(PreprocessorDefinitions)