New answers tagged c++17
2
votes
Accepted
Templatizing a Timer class
Let the caller convert durations
You are right that having milliseconds() and seconds() member functions is not nice, and you ...
4
votes
Templatizing a Timer class
Time warp
Anything but std::chrono::steady_clock does not guarantee being monotonic and ticks having more-or-less constant time between them as time moves forward. ...
3
votes
Accepted
C++17 view over the Ith elements of tuples in containers of tuples
Missing iterators
As it is now, I would say it is cute, but not very useful. In most of your test code, you can see that using std::get<>() requires less ...
5
votes
Accepted
Create and view a family tree
This is by no means exhaustive, more a list of general highlights on what to focus on rather that deep analysis of the implementation.
Some general pieces of advice first:
Use some coding conventions ...
2
votes
Multi-threaded Mandelbrot set generator slower than single thread
Distributing the work among threads
D. Jurcau already mentioned that you are not distributing your work correctly. It's even worse than his terse answer hints at. One issue is that inside the lambda ...
1
vote
Multi-threaded Mandelbrot set generator slower than single thread
You don't distribute work among your threads correctly. According to your code, only by the time a thread has completed its work is the start point for the next thread(s) updated.
2
votes
Storing different types with common base using atomic-based typeid
I usually do a line-by-line review of the code, but that seems pointless here, because you have three different implementations of the same “thing”, and are ultimately only interested in one. There’s ...
Top 50 recent answers are included
Related Tags
c++17 × 527c++ × 517
algorithm × 64
template-meta-programming × 57
beginner × 54
programming-challenge × 47
template × 38
performance × 31
reinventing-the-wheel × 28
multithreading × 22
iterator × 22
strings × 16
c++11 × 16
variadic × 16
memory-management × 15
object-oriented × 12
c++14 × 12
pointers × 12
linked-list × 11
boost × 11
parsing × 10
array × 9
game × 9
thread-safety × 9
collections × 9