We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc271c5 commit ee96541Copy full SHA for ee96541
examples/main/main.cpp
@@ -241,7 +241,7 @@ int main(int argc, char ** argv) {
241
sigint_action.sa_flags = 0;
242
sigaction(SIGINT, &sigint_action, NULL);
243
#elif defined (_WIN32)
244
- auto console_ctrl_handler = [](DWORD ctrl_type) -> BOOL {
+ auto console_ctrl_handler = +[](DWORD ctrl_type) -> BOOL {
245
return (ctrl_type == CTRL_C_EVENT) ? (sigint_handler(SIGINT), true) : false;
246
};
247
SetConsoleCtrlHandler(static_cast<PHANDLER_ROUTINE>(console_ctrl_handler), true);
0 commit comments