User profile: Peter87

User info
User name:Peter87
Website:http://dataapa.net/
History
Joined:
Number of posts:11238
Latest posts:

Template errors creating a map<int,std::thread> using map::emplace
I think the problem is that std::thread will copy the arguments by default but std::mutex is not cop...

Are these ternary operators the same?
[quote]modulo and boolean logic for a bit operation is clunky ... a&1 is true for odd[/quote] Checki...

Are these ternary operators the same?
The [i]condition[/i] (left side of the [b]?[/b]) is different. [code](a % 2 == 0)[/code] is true wh...

C++23
Note that something like [code] for (auto& elem : getVector())[/code]has always been fine. It was ...

Need a data structure where I can map a string to a type
It's not necessary to use an enum. It was just a suggestion.