regent
banner
rgnter.bsky.social
regent
@rgnter.bsky.social
🇸🇰 Software engineer from Slovakia
❤️ Open-source software contributor
🛠️ Founder to an open-source project called Story Of Alicia
🏢 Software engineer at Bohemia Interactive Simulations

🔗 https://rgnt.xyz
🔗 https://storyofalicia.com
Unreal Engine is not a library.
September 4, 2025 at 4:32 PM
in case it's a genuine question, it's a template for the signature of the callable function

en.cppreference.com/w/cpp/utilit...
std::function - cppreference.com
en.cppreference.com
August 24, 2025 at 10:22 PM
What other parts of the STL is the + operator used to append to the path while also adding a filesystem separator?
June 4, 2025 at 3:37 PM
For future reference, in c++ use std::function instead of raw function pointers, and using instead of typedefs.

using CharacterLogicFunction = std::function<Tile(Character&)>;
June 4, 2025 at 3:21 PM
In c++'s std::filesystem::path, the / operator is used by std::filesystem library to append to the path with the separator. The + operator is used to append to the path without the separator.

Don't use intuition, read the docs.
June 4, 2025 at 3:17 PM
Disable the full line AI assisted code completion. If you're using Clion the setting is here:

Editor > General > Inline Completion > Enable local Full line completion suggestions
May 27, 2025 at 9:45 AM
fyi `get_money` is the I/O manipulator while the other one, `money_get` is a facet.
In layman's terms, first one you can string together with other IO operations on streams, the other one is the parser alone.
May 27, 2025 at 9:38 AM
I don't think lack of highlighter support in VSC is valid ground for any critique.
April 3, 2025 at 7:14 PM
just watch some cppcon recordings on YouTube, you'll be pleasantly surprised on how modern the standard is
March 16, 2025 at 8:11 AM
There's nothing vague about lifetimes. But you mentioning volatile makes me think you experienced something called execution reordering, read calls reordered before the actual write even happened.

Unfortunately that's just a bad design.
November 29, 2024 at 2:41 PM
I doubt that's what happened. Compilers can't just "optimize away" the lifetime of your data.

Something must have been designed poorly, which is maybe difficult to hear but I'm sure that's the case.
November 29, 2024 at 12:10 PM
Maybe it's funny because of the inconsistent naming?
Also the joke is copied twice, maybe a metaphor on how everything is unoriginal?
November 29, 2024 at 10:26 AM
Is there anything specific that you experienced lately, that made you feel that "undefined behaviour" is everywhere?
November 29, 2024 at 10:25 AM
Yes, that's because the compiler couldn't generate it. Most likely because some member of the class has an explicitly deleted copy assign operator.

And that's usually for a good reason.
November 29, 2024 at 10:23 AM
I've heard about recursive mutex being better performance-wise, but from my own experience the speed is comparable, both on Linux and Windows.

I couldn't find any more articles about it though. At this point it feels like a here-say.
November 28, 2024 at 5:20 PM
If they gave you the test, I assume you had C++ listed in your skillset? If not, that's just a bad job advertisement.
November 28, 2024 at 5:05 PM
Keeping backward compatibility is important. You don't want to rewrite huge codebases just to compile with the newer compiler... It's important for the economy.
Imagine if operating systems didn't care for compatibility... Your software would be outdated and broken before you could even release it.
November 28, 2024 at 5:03 PM
Do you mean the syntax or the standard library?

If you mean the standard, C++ is a general purpose programming language, certain aspects of the standard library might not be to your liking, but they're designed with GENERAL PURPOSE in mind.

What is it exactly that was bothering you?
November 28, 2024 at 9:03 AM