HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rovingeye

no profile record

comments

rovingeye
·قبل 5 أشهر·discuss
it's literally the exact same thing. We use trailing return types to be consistent across the language.
rovingeye
·قبل 5 أشهر·discuss
This has been valid C++ since C++ 11
rovingeye
·قبل 7 أشهر·discuss
It looks like you missed the part where you "move the context into the lambda body via capture specifier."
rovingeye
·قبل 7 أشهر·discuss
Consistency (lambdas, etc.)
rovingeye
·قبل 7 أشهر·discuss
All my window classes uses cbWndExtra, and I leave GWLP_USERDATA for the user who is creating windows.
rovingeye
·قبل 7 أشهر·discuss
That doesn't sound like a valid wndproc
rovingeye
·قبل 7 أشهر·discuss
I assume by "move the context into the body" you mean using GetWindowLongPtr? Why not just use a static wndproc at that point?
rovingeye
·قبل 7 أشهر·discuss
I wasn't aware of the thread local trick, I solve this problem by not setting WS_VISIBLE and calling SetWindowPos & ShowWindow after CreateWindow returns (this solves some other problems as well..)
rovingeye
·قبل 8 أشهر·discuss
I have that turned on in Windows Terminal but still use ctrl+c because it's how all other software works
rovingeye
·قبل 9 أشهر·discuss
The windowing is pretty broken if you use system scaling https://github.com/zed-industries/zed/issues/40272
rovingeye
·قبل 9 أشهر·discuss
Thanks for the info. Looks like they're using /silent right there in the example

"Steam customers love a quick and silent install. Add silent or quiet parameters to all run process commands and only add what you absolutely need for the game."
rovingeye
·قبل 9 أشهر·discuss
MicrosoftEdgeWebview2Setup.exe /silent /install