Skip to content

Fix incompatibility with C++14.#615

Merged
dunhor merged 2 commits intomicrosoft:masterfrom
teo-tsirpanis:fix-cpp14
Feb 10, 2026
Merged

Fix incompatibility with C++14.#615
dunhor merged 2 commits intomicrosoft:masterfrom
teo-tsirpanis:fix-cpp14

Conversation

@teo-tsirpanis
Copy link
Contributor

std::scoped_lock is available in C++17. Using it without a feature guard causes compile errors on earlier C++ versions.

One affected case is the conda-forge distribution of the Azure SDK for C++.

`std::scoped_lock` is available in C++17. Using it without a feature guard causes compile errors on earlier C++ versions.
@dunhor
Copy link
Member

dunhor commented Feb 6, 2026

Please note that while we'll take changes to support older standards, we bumped our minimum testing version to C++17 over a year ago (maybe 2, I forget exactly) and can't make any promises going forwards about continued support of older standards as new changes are made.

Co-authored-by: Duncan Horn <40036384+dunhor@users.noreply.github.com>
@dunhor dunhor merged commit e331996 into microsoft:master Feb 10, 2026
15 checks passed
@teo-tsirpanis teo-tsirpanis deleted the fix-cpp14 branch February 10, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants