Use <filesystem> for VS2026 (MSVC Build Tools v14.51)#497
Conversation
See May Update 18.6.0 > C++ > MSVC Build Tools v14.51 > Standard Library (STL) > "We've removed long-deprecated non-Standard features" at https://learn.microsoft.com/en-us/visualstudio/releases/2026/release-notes
|
Comparing an unsuccessful CI run with a successful one, the pre-existing code is failing on the run where it builds with: [settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=195
os=Windowswhich results in: In the successful run: [settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=17
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windowsresults in: |
| #elif defined(_MSC_VER) | ||
|
|
||
| #if _MSC_VER >= 1910 | ||
| #if _MSC_VER >= 1951 |
There was a problem hiding this comment.
Shouldn't it be 1950 instead of 1951?
See MSCV Build Tools version table in https://learn.microsoft.com/en-us/cpp/overview/compiler-versions?view=msvc-180
There was a problem hiding this comment.
No, not according to the release notes that I linked.
|
FWIW, I'm having a different problem when using the nmos-cpp/cci.20260622 recipe with VS 2026 / MSVC 195. According to conan-io/conan-center-index#28884, CMake 4.2 is the first version that supports "Visual Studio 18 2026". I'm going to investigate overriding the recipe with |
See May Update 18.6.0 > C++ > MSVC Build Tools v14.51 > Standard Library (STL) > "We've removed long-deprecated non-Standard features" at https://learn.microsoft.com/en-us/visualstudio/releases/2026/release-notes