To learn about utilising coroutines in networking, I've been studing its use in Boost.Asio's chat server example. (doc/html/boost_asio/example/cpp17/coroutines_ts/chat_server.cpp - 1.76.0 ). However,...
Type: Posts; User: Chris87
To learn about utilising coroutines in networking, I've been studing its use in Boost.Asio's chat server example. (doc/html/boost_asio/example/cpp17/coroutines_ts/chat_server.cpp - 1.76.0 ). However,...
Thanks, I'll check to see if I did a const goof-up
I've been trying to use scoped_lock in VS2019 when trying to make a thread safe database class that uses an underlying queue, also thread-safe, to execute operations fed into it. It's a basic class...
I see... Oh well.
I see. Yeah, I found out by assigning it in constructor satisfies the compiler
That's a relief! Is UDP also the same? Because I'm not sure yet but I think I may use that for some operations.
I understand the concept of thread safety is to prevent data races and other undefined behavior. However, when using mutexes and thread locks (say C++'s std::mutex and std::scoped_lock for example),...
I'm getting some very odd behavior with the constructor of a class that uses a std::back_insert_iterator member variable. GCC seems to think the constructor definition is a construction call to said...
Does anyone know if OpenSSL, Botan, Crypto++, or some other crypto library has support for HAVAL hashing? Google is sending me on a goose chase and I can't find anything on the libraries' pages.
I...
Unfortunately, there doesn't seem to be any official forums for CMake, so I was wondering if it's okay to ask here? I would ask away but I don't want to seem ignorant. I'm trying to make a...
That's certainly awkward, but yeah I'll look. Thanks
Hmm... I'll give it a try with a regular pointer. Not sure how ASELoader uses it differently though... Maybe I'm supposed to close it
I've been trying to make a plugin for Assimp for a while now, and for the most part, it works until the end of the function, which by then an exception is thrown about the std::unique_ptr variable I...
Ooooh, okay. So since they're pointers, it'll only show the first value being pointed to?
I've been trying to write a new importer for Assimp (Home). It seems ready for debugging, so I wrote a unit test for it. It fails with an access violation exception, so I started the debugger and...
Published 1995..... Unless you're programming for an old PC... like dinosaur old, I have no idea why you'd want this.
Sorry. I guess I just cringe over verbosity
How is DMM and pointers no longer relevent in C++?
I was just about to point out Beast, myself, lol
Well, I initially used a string instead of a vector, and I'm not sure if string's size() counts possible null characters interlaced.. Hmm... I guess vector might work, my bad.
I'm trying to parse a binary file where some of its strings are in CP437 encoding. I figure iconv would be suitable because it's cross platform and CP437 to UTF-8 isn't exactly widening characters,...
I'm guessing what you're seeking is something similar to Rust's include_bytes! macro?
If you want to parse parameters passed with program execution, I'd suggest taking argc and argv into account using a for-loop:
int value = 0;
if (argc > 1)
{
for (int i = 1; i < argc;...
Yep! I guess that works too, thanks!
Seems confusing, but I see some relation to concepts as far as that goes. Thanks.