Open denzor200 opened 3 years ago
Hi Denis, thank you for the suggestion. I don't see this feature as particularly appealing, at least in its current form:
std::make_tuple
).make_multi_index_container
should have to take care of all index construction arguments rather than simply default-constructing the container. Achieving this is an interesting, but not trivial, exercise.
Inspired by
std::make_tuple
forstd::tuple
.. I recently tried to create 4 simple make methods for types from this library:These methods allow me to write like this:
..And the same code without methods (how it works now):
In my opinion, the variant with make-methods is much better. Why not support for these methods on the library side?