Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
JakobProgsch
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
JakobProgsch
7y ago
The first line is why I'm not 100% convinced of the severity of this mistake compared to the alternatives. The problem fundamentally is the use of magic values/numbers to represent the concept of "no value". You don'
2.
▲
by
JakobProgsch
7y ago
> This kind of approach is usually not what you want One thing I learned from all the issues and emails I have received about this repository over the years is that what people consider the "usual" use case of threads varies wi
3.
▲
by
JakobProgsch
7y ago
Earlier versions did use decltype but that causes issues with pointers to member functions. See: https://github.com/progschj/ThreadPool/commit/ac2a77d5cc0436... result_of has now been deprecated in newer C++
4.
▲
by
JakobProgsch
7y ago
I'm the original author of that github repo and I agree with all of this. The original reason why I wrote it was to familiarize myself with the then new features in the C++11 standard. Particularly I liked the simplicity of std::async