Answer by HolyBlackCat for How to turn off this function in VS CODE
You can disable the file name highlight with:"workbench.editor.decorations.colors": false,And the red 1 (number of errors) indicator with:"workbench.editor.decorations.badges": false,But this is purely...
View ArticleComment by HolyBlackCat on GCC Cross Compiler for linux under msys2
@RixTheTyrunt You could install linux on your machine, or run it from a USB stick. Or you could use a different VM that doesn't need hardware support (QEMU should work I think)? Also check in BIOS to...
View ArticleAnswer by HolyBlackCat for How to turn off file name coloration in VS Code
You can disable the file name highlight with:"workbench.editor.decorations.colors": false,And the red 1 (number of errors) indicator with:"workbench.editor.decorations.badges": false,But this is purely...
View ArticleComment by HolyBlackCat on Need to call trivial destructor in standard...
"For example, if one wants to count the number of times vector<int, counting_allocator<int> > destroys int" Nope, this doesn't make sense. This isn't up to you to decide, rather the custom...
View ArticleComment by HolyBlackCat on Compiling GLAD with Clang and -pedantic flag on...
Report a bug to Glad, and for now work around this by temporarily disabling this warning with #pragmas.
View ArticleComment by HolyBlackCat on undefined reference to "WinMain"
Show your code and compiler flags. Also see How do I use SDL2 in my programs correctly?.
View ArticleComment by HolyBlackCat on Compile Time unique hash for variables
1. If you exit and reenter a function, do you want to get the same hash or a new one? 2. If you call a function recursively, are its local variables "new" variables or not? Is it ok to get the same...
View ArticleComment by HolyBlackCat on VSCode randomly auto selecting text when i write
Well, this gif is recorded with some extensions enabled.
View ArticleComment by HolyBlackCat on Which part of the C++ standard forbids double...
Three (!!) questions in one question. :/
View ArticleComment by HolyBlackCat on Which part of the C++ standard forbids destroying...
Reposting a part of the answer from here, since that Q is new closed as too broad.
View ArticleComment by HolyBlackCat on How to Build LibArchive library
Please paste the first few errors as text from the Output tab.
View ArticleComment by HolyBlackCat on How to get debuginfod for GDB MSYS2?
Just in case, you know what debuginfod is, right? You don't need if you have debug symbols in the exe.
View ArticleAnswer by HolyBlackCat for Coding in Assembly instead of using tools like...
Assembly is not inherently faster than C++ or any other (compiled) programming language.Rather, the point is that handwritten assembly can be better than the one produced by the C++ compiler if you're...
View ArticleComment by HolyBlackCat on Cannot open source file SDL2.h | Visual Studio
@OldBoy "" works too. After searching the current directory, it then searches all the same directories as <>.
View ArticleComment by HolyBlackCat on length function in c++
std::string can contain embedded \0, because it stores its length instead of computing it every time. Some other parts of the standard library (primarily those coming from C) stop at \0, but not...
View ArticleComment by HolyBlackCat on length function in c++
Ugh, had no idea string's test1.erase(2); did this. I think I'd rather test1.resize(2); for consistency with containers.
View ArticleComment by HolyBlackCat on Vscode + MSYS2: print problem in python script
I used to get those from time to time too, never figured it out. My bet is that it's some broken shell integration. There's a setting for it, try disabling it (you'll lose ctrl+up/down shortcuts though).
View ArticleComment by HolyBlackCat on I want to embed or develop a 2D game in a Windows...
So google for engines/frameworks? SDL, SFML and Raylib seem to be the big three frameworks.
View ArticleAnswer by HolyBlackCat for Concept placement changes program outcome without...
This isn't directly about concepts. Any template placed there would have the same issue.The first question you should ask yourself is: "Is SpecialCompare a customization point?".If it is one (if the...
View ArticleComment by HolyBlackCat on How to use default member initializer if...
As many before you, you've stumbled upon one of the issues with the "uniform" initialization. :P The constructors of std::vector blow up in the same way. The solution? Don't use {} everywhere, only use...
View Article