Files
Stockfish/src
lucasart 60beb18efc Remove some difficult to understand C++11 constructs
Code like this is more a case of showing off one's C++ knowledge, rather than
using it adequately, IMHO.

**First loop (std::generate)**

Iterators are inadequate here, because they lose the key information which is
idx. As a result, we need to carry a redundant idx variable, and increment it
along the way. Very clumsy.
Usage of std::generate and a lambda function only obfuscate the code, which is
merely a simple and stupid loop over the elements of a vector.

**Second loop (std::accumulate)**

This code is thoroughlly incomprehensible. Restore the original, which was much
simpler to understand.

**Third loop (range based loop)**

Again, a range based loop is inadequate, because we lose idx! To resolve this
artificially created problem, the data model was made redundant (idx is a data
member of db[] elements!?), which is ugly and unjustified. A simple and stupid
for loop with idx does the job much better.

No functional change.

Resolves #313
2015-03-29 08:40:24 +01:00
..
2015-03-07 07:38:22 +00:00
2015-03-23 17:10:38 +01:00
2015-01-24 19:38:06 +00:00
2015-01-11 22:56:35 +01:00
2015-03-07 07:38:22 +00:00
2015-03-23 09:02:52 +01:00
2015-01-11 22:56:35 +01:00
2015-01-18 08:27:46 +01:00
2015-03-15 20:31:43 +00:00
2015-03-07 07:38:22 +00:00
2015-03-07 07:38:22 +00:00
2015-03-10 12:42:40 +01:00
2015-03-07 07:38:22 +00:00
2015-03-07 07:38:22 +00:00
2015-03-07 07:38:22 +00:00
2015-03-28 22:12:06 +00:00
2015-03-28 22:12:06 +00:00
2015-03-29 07:30:46 +08:00
2015-03-07 07:38:22 +00:00
2015-03-28 22:12:06 +00:00
2015-03-07 07:38:22 +00:00
2015-03-20 03:05:25 +01:00
2015-03-24 21:34:19 +00:00
2015-01-10 11:46:28 +01:00
2015-03-12 19:49:30 +00:00
2015-03-07 07:38:22 +00:00
2015-03-07 07:38:22 +00:00
2015-03-07 08:38:26 +01:00
2015-03-23 09:02:52 +01:00
2015-03-07 07:38:22 +00:00
2015-03-07 07:38:22 +00:00