#include
s into the main's log output. 02:08
Hey guys, how might I make a logger (through spdlog) that works across multiple files? Meaning, I have one .cpp (call it A) with the main function, but I want to log a lot of what's happening in another .cpp (call it B) file that the main one
6 hours later…
07:42
Hi, I have a question about multi-threading. My aim to store data from 26 large .csv files into 1 single vector. So I try to parallelize this by storing data from 1 file into a single vector in parallel then concatenate all the 26 vectors once all the single files are stored. The problem is that single threaded performance consistently outperforms the multi-threaded solution. Any advice on this?
2 hours later…
10:11
4 hours later…
15:08
But one more question arises. Your solution works for the simple case indeed. But for my project, it seems not a suitable one since there are still many public methods in the
Demo::Foo
and Demo::Bar
classes. Once I use the derived classes instead of the base one(say Demo::Foo
), I can't call the methods provided by the base class in my main function anymore.
2 hours later…
17:24
@John It's setting the underlying type which is somewhat different from inheriting, I think. You can't inherit from builtins and for an
enum class
you don't have access to the +
operator that the underlying type would have. Also you cannot use other things like an std::string
as the underlying type. « first day (2329 days earlier) ← previous day next day → last day (748 days later) »