Quantcast
Channel: User HolyBlackCat - Stack Overflow
Browsing all 1287 articles
Browse latest View live
↧

Comment by HolyBlackCat on Make bitmask from enum definition

Add mask = (1 << 18) - 1 to the end of the enum, and you're done! Or better mask [[maybe_unused]] = (1 << 18) - 1.

View Article


Answer by HolyBlackCat for MSYS2 Clang++ produces error with filesystem library

After some testing, this is a bug in libstdc++, the GCC's C++ standard library. It's already fixed in the newer versions.This happens any time you do std::filesystem::copy("file", "directory"),...

View Article


Answer by HolyBlackCat for Result of expression convertible to a type that...

"Convertible to some T matching concept C" is fundamentally impossible, the compiler isn't going to check all possible conversion targets."Decays to a type matching concept C" is possible, but not with...

View Article

Comment by HolyBlackCat on C++ emscripten setup

First you need a proper build system, e.g. CMake (I assume you're using VS projects right now). Then use emcmake (see Emscripten manual). Making VS compile with Empscripten probably isn't trivial, I'd...

View Article

Comment by HolyBlackCat on Rendering a triangle with OpenGL/GLFW does not...

Don't add "solved" to the title. You should just delete the question (or self-answer it, but you can't do it in the staging ground).

View Article


Comment by HolyBlackCat on Any way to have an Implicit Lifetime Type with a...

@JodyHagins My point is that no, compilers are not moving in this regard, they are being very very conservative. People widely rely on this stuff working.

View Article

Comment by HolyBlackCat on How can I get Visual Studio Code to give correct...

Sounds like a job for semantic highlighting. I don't know if the stock C++ plugin can do it, but Clangd surely can.

View Article

Comment by HolyBlackCat on GLADloadproc: what exactly does it do?

Are you asking how to read complex typedefs? The rest is fairly straightforward, the address returned by that function is saved into a variable (of a function pointer type).

View Article


Comment by HolyBlackCat on Clarifying a certain hunch from an old classic

Can you tell what exactly the (perceived) problem is here?

View Article


Comment by HolyBlackCat on Failed to download error while trying to install...

Sometimes it figures it out and still installs the packages, supposedly from other sources (look at the end of the output). Sometimes rerunning the command helps. If neither works, go ask your network...

View Article

Comment by HolyBlackCat on Can't link to SDL3 using MinGW

This happens when you use x32 libs with an x64 compiler or vice versa. I recommend installing prebuilt SDL3 and MinGW from MSYS2, those are guaranteed to be compatible.

View Article

Comment by HolyBlackCat on which Boost libraries can be used from C?

Boost.preprocessor probably.

View Article

Comment by HolyBlackCat on C++ ambiguous symbol warning from multiple 'using'...

Can you prepare a minimal reproducible example. It looks like it should work.

View Article


Comment by HolyBlackCat on Can't link to SDL3 using MinGW

This doesn't do much on Windows. This is a good idea, but not doing this will at worst give argv in non-UTF8 encoding I think?

View Article

Comment by HolyBlackCat on which Boost libraries / modules are compatible...

Boost.preprocessor probably.

View Article


Comment by HolyBlackCat on Does this transitive happens-before use case need...

Yes, acq/rel looks safe here.

View Article

Comment by HolyBlackCat on String returning function as an argument in asprintf

Did you forget to enable compiler warnings?

View Article


Comment by HolyBlackCat on What do you do or rather what can you do after...

What is a "code server"? And yes, you just install a compiler (Clang) and a text editor (Nano).

View Article

Comment by HolyBlackCat on Why I can not construct mdspan from 2D C array?

@Rud48 Huh? I'm explaining why this isn't feasible too implement, because of language limitations. "Your code in CE" What code, I didn't post any.

View Article

Comment by HolyBlackCat on What does auto do beyond matching the actual class...

Read up on "forwarding references".

View Article
Browsing all 1287 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>