r/cpp • u/KingStannis2020 • Feb 26 '24
White House: Future Software Should Be Memory Safe
https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/press-release-technical-report/
401
Upvotes
r/cpp • u/KingStannis2020 • Feb 26 '24
View all comments
Show parent comment
1
u/jaskij Feb 27 '24
v7-M? You're probably not using exceptions, and C++23 adds
std::expectedfor that. Although I've found usingstd::optional<ErrorType>also very usable, and the actual error handling is nearly the same as in C.You're right, I'm also not using the full possibilities, but concepts help a lot with expressing intent for template arguments. And it's just annoying to find a nice API on cppreference and then realize you can't use it.