Why does the precise point at which I get a stack overflow exception change from run to run?
Источник: The Old New Thing
Источник: The Old New Thing
The Old New Thing
Why does the precise point at which I get a stack overflow exception change from run to run?
Consider this program: #include <stdio.h> int maxdepth = 0; int f() { ++maxdepth; return f(); } int main() { __try { f(); } __except (GetExceptionCode() == STATUS_STACK_OVERFLOW ? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)…
Why is the stack overflow exception raised before the stack has overflowed?
Источник: The Old New Thing
Источник: The Old New Thing
The Old New Thing
Why is the stack overflow exception raised before the stack has overflowed?
Consider this program we looked at last time. #include <stdio.h> int maxdepth = 0; int f() { ++maxdepth; return f(); } int main() { __try { f(); } __except (GetExceptionCode() == STATUS_STACK_OVERFLOW ? EXCEPTION_EXECUTE_HANDLER : …
Why do I have to add one when setting a class background brush to a system color?
Источник: The Old New Thing
Источник: The Old New Thing
The Old New Thing
Why do I have to add one when setting a class background brush to a system color?
When you register a window class, you can specify that the background color is a system color by adding one to the system color index, and then casting the result to HBRUSH: WNDCLASS wc; ... wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); Why do we add one?
The Evolutions of Lambdas in C++14, C++17 and C++20--Jonathan Boccara
Источник: isocpp.org (Standard C++)
Источник: isocpp.org (Standard C++)
Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as` - Herb Sutter
Источник: CppCon
Источник: CppCon
YouTube
Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as` - Herb Sutter
https://cppcon.org/
https://github.com/CppCon/CppCon2021
---
C++20 is a unique historic milestone: It's the first edition of Standard C++ that’s “D&E-complete,” with essentially all of the features Bjarne Stroustrup outlined in /The Design and Evolution of…
https://github.com/CppCon/CppCon2021
---
C++20 is a unique historic milestone: It's the first edition of Standard C++ that’s “D&E-complete,” with essentially all of the features Bjarne Stroustrup outlined in /The Design and Evolution of…