News for hackers. Stuff that matters.
Re:Writing a custom iterator in modern C++ by emmanueloga_ on Sunday December 20, 2020 @09:49PM (#25491679)
It would be nice to write a DSL to generate some of the C++ boilerplate (say, containers, iterators, etc) required as a baseline before starting to solve the actual problem.

A DSL could codify rules like the ones described in this article and generate at least a rough first pass to be hand-tuned later.

Re:Writing a custom iterator in modern C++ by pumpkinpal on Sunday December 20, 2020 @11:11PM (#25492058)
Boost STL Interfaces provides this functionality as a library. Not just for iterators but both views and containers of sequences too.

https://www.boost.org/doc/libs/1_75_0/doc/html/stl_interface...

Re:Writing a custom iterator in modern C++ by mhdhn on Monday December 21, 2020 @01:00AM (#25492488)
Wow, no, really? wouldn't hat would spoil the "fun" of all the endless arcana?