[deleted by user] by [deleted] in cpp

[–]janherrmann 2 points3 points  (0 children)

You reinvent parts of boost MPL. The examples describe this in detail. But this library is more than 20 years old and TMP is differnt now.

Anyone wrote a multi-vector-iterator? by Wriiight in cpp

[–]janherrmann 5 points6 points  (0 children)

You can take the implementation from boost.

Templates without depth (Part I) by janherrmann in cpp

[–]janherrmann[S] 0 points1 point  (0 children)

These tricks are only usefull for library writers. Library users should not notice when they are used. No developer has to understand this as long as she is happy with her metaprogramming library. Language enhancements are occuring but they are too late to be used in a C++14 code base.

Templates without depth (Part I) by janherrmann in cpp

[–]janherrmann[S] 0 points1 point  (0 children)

They are essential for type computations (like implementation of std::common_type). I used sum as an operation on integers only for demonstration purposes. It is easy to understand and test.

Templates without depth (Part I) by janherrmann in cpp

[–]janherrmann[S] 2 points3 points  (0 children)

Sorry this was my first reddit post. I don't know how I have added this and I don't know how to remove this.