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

Comment by HolyBlackCat on Boost library in C++Builder 12.1 (Modern)

If you don't mind me asking, it's the first time I'm seeing somebody use this compiler. Why not something more mainstream? (GCC, MSVC, or the unmodified Clang) What's the difference compared to Clang...

View Article


Comment by HolyBlackCat on Why is this Python code running faster and more...

Is SFML important here? If you're measuring computation speed, why add graphics at all? And if you're measuring rendering speed, why add computations?

View Article


Comment by HolyBlackCat on Clangd In included file: 'llvm/ADT/DenseMapInfo.h'...

Did you enable compile_commands.json generation in your build system?

View Article

Comment by HolyBlackCat on Why does C++23 if consteval not allow different...

"questioning why this behaviour was chosen, hence language-lawyer"language-laywer means something else, it means you want to know where the standard forbids it.

View Article

Comment by HolyBlackCat on C++23: do we need to #include types of default...

I suggest reporting a bug to github.com/microsoft/STL

View Article


Comment by HolyBlackCat on C++ Why do std::vector and std::list not share a...

To clarify, C++20 concepts don't offer any new possibilities here, they are just a cleaner way to express type requirements compared to the old std::enable_if.

View Article

Comment by HolyBlackCat on Pass reference argument to STL container element...

Why not use a pointer member?

View Article

Comment by HolyBlackCat on SDL event duplicated in event queue

Please read about minimal reproducible example and add one to your question.

View Article


Comment by HolyBlackCat on With glTexStorage3D why cant i allocate more than...

GL_MAX_ARRAY_TEXTURE_LAYERS = 35071 is not the max value, it's a enum constant. Pass it to glGetIntegerv.

View Article


Comment by HolyBlackCat on Why I can't use external library ray lib?

@RegularGuy It means you have something weird in "command", unrelated to this answer.

View Article

Comment by HolyBlackCat on SFINAE for checking the validity of a complex...

If the thing being checked is not SFINAE-friendly, you can't do anything. You need some heuristics to guess copyability.

View Article

Comment by HolyBlackCat on Why Compile and Connect a Dynamic Library Failed...

You're doing something wrong. Nobody can tell you what exactly, since you didn't tell us what you did to get this error.

View Article

Comment by HolyBlackCat on How to pass compile-time string constant from a...

Somebody posted an actual answer to that thread, check it out: stackoverflow.com/a/78319845/2752075

View Article


Comment by HolyBlackCat on Why do the two pointer arrays return different...

You're not printing arr[0], but rather arr (aka `&arr[0] in most cases, including here).

View Article

Comment by HolyBlackCat on Can this code being used as singleton alternative...

How is this better than a simple static Singleton instance;? It's automatically thread-safe.

View Article


Comment by HolyBlackCat on Why is there no time cost to large stack allocations

Why wouldn't it be free? It's just {in,de}crementing the pointer, which is O(1).

View Article

Comment by HolyBlackCat on Webassembly runs much slowly than pure JavaScript...

At a minimum, you should add -O3 to emcc flags.

View Article


Comment by HolyBlackCat on Improve g++ compiler flags for debug and release

I'm not sure if -DDEBUG does anything. I'd recommend adding -D_GLIBCXX_DEBUG to debug builds to enable container bounds checking. Also -pedantic-errors (in both) is a good idea to ensure standard...

View Article

Comment by HolyBlackCat on The makefile rules are not working properly

So it should be $(addprefix $(BUILD_DIR)/,$(OBJS)).

View Article

Comment by HolyBlackCat on Can't install C compiler

I wouldn't recommend manually adding the key, without first confirming the key is legit.

View Article
Browsing all 1287 articles
Browse latest View live


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