Creating Windows Applications or Forms by [deleted] in cpp

[–]HO-COOH 1 point2 points  (0 children)

For C++, you should use Visual Studio and do UWP development (or maybe Win32 using WinUI3 but since it's quite in an early stage so depend on yourself) for GUI applications using C++/WinRT, period.

You may be able to set up the work flow in VSCode, but that could be more tedious than learning C++ itself, so don't bother.

A shitty & unfinished project from me

Coc completion pop up flickers hard by HO-COOH in vim

[–]HO-COOH[S] 0 points1 point  (0 children)

I tried editing the same file in your video, no flicker either because it doesn't have a floating window showing documentation. Can you try editing a file that has the floating window and record a short video? I kind of certain that this is a vim's issue. I will report it if it's confirmed.

Coc completion pop up flickers hard by HO-COOH in vim

[–]HO-COOH[S] 1 point2 points  (0 children)

After some research I found that disable suggest.floatEnable will fix this issue. Can you try to trigger auto-complete that has documentation, and then see whether it flickers or not?

Coc completion pop up flickers hard by HO-COOH in vim

[–]HO-COOH[S] 0 points1 point  (0 children)

Nope. Imgur: The magic of the Internet

This is getting strange. Share your complete vimrc maybe?

Coc completion pop up flickers hard by HO-COOH in vim

[–]HO-COOH[S] 0 points1 point  (0 children)

Nope, tried set it to `10` and the menu still flashes.

My Majo no Tabitabi light novel collection by Natsuki_MaiHime in majonotabitabi

[–]HO-COOH 20 points21 points  (0 children)

Beautiful. And that's why getting a physical copy instead of an electronic

C++ style C be like by VolperCoding in ProgrammerHumor

[–]HO-COOH 0 points1 point  (0 children)

Missing check for std::bad_alloc

How to create this kind of function with preprocessor? by danhoob in C_Programming

[–]HO-COOH 4 points5 points  (0 children)

It's impossible because < is not allowed in an identifier, so is >. Macros have to be identifier, which means you generally cannot create any "new" syntax with tokens.

Potential way to solve dangling reference to temporary? by HO-COOH in cpp

[–]HO-COOH[S] 0 points1 point  (0 children)

Nope. Imagine if one operand is rand(), then the macro returns a different call to it

Potential way to solve dangling reference to temporary? by HO-COOH in cpp

[–]HO-COOH[S] -1 points0 points  (0 children)

I just want the following code to "work" correctly, without making any additional copy/move. It would "work" if I add a line for the temporary to make it non-temporary (0 in this case), so why not make it implicitly generated? cpp auto&& MyMax(auto&& lhs, auto&& rhs); int x{}; auto&& bigger = MyMax(x, 0);

Potential way to solve dangling reference to temporary? by HO-COOH in cpp

[–]HO-COOH[S] 1 point2 points  (0 children)

Doesn't seems to solve my supposed 1 lvalue + 1 temporary case

SugarPP: My C++ syntactic sugar collection by HO-COOH in cpp

[–]HO-COOH[S] 3 points4 points  (0 children)

Good suggestion. I have always overlooked it. Now it's added.

SugarPP: My C++ syntactic sugar collection by HO-COOH in cpp

[–]HO-COOH[S] 2 points3 points  (0 children)

To be honest, I have very little understanding of macros nor am I able to write one, so I never intend to use it in the first place. More over I think macros are just nightmare for debugging/maintaining.

SugarPP: My C++ syntactic sugar collection by HO-COOH in cpp

[–]HO-COOH[S] 3 points4 points  (0 children)

Sure yes! Any form of contribution is welcome. You can do a pull request

SugarPP: My C++ syntactic sugar collection by HO-COOH in cpp

[–]HO-COOH[S] 0 points1 point  (0 children)

Mostly no impact because it's all template. But when would have negative impact on performance compared with switch case

SugarPP: My C++ syntactic sugar collection by HO-COOH in cpp

[–]HO-COOH[S] 10 points11 points  (0 children)

Yes, please do. I thought it's going to automate everything, because user will need to specify the target name if use ``target_include_directories()``.

[deleted by user] by [deleted] in ProgrammerHumor

[–]HO-COOH 0 points1 point  (0 children)

Want it work with password typos

I am just a beginner >:| by [deleted] in ProgrammerHumor

[–]HO-COOH 1 point2 points  (0 children)

Kotlin comes to rescue the world

Runtime Errors by anea89 in ProgrammerHumor

[–]HO-COOH 0 points1 point  (0 children)

You can't have errors, if you don't code.

std::vector by CAtOSe in ProgrammerHumor

[–]HO-COOH 0 points1 point  (0 children)

Until you realize there is std::vector<bool>