samvv / OldZenLibraries

Programming in C++ with ease of mind
https://zenlibraries.github.io/
Apache License 2.0
0 stars 0 forks source link

Add better diagnostic messages in the template metaprogramming library #1

Open samvv opened 4 years ago

samvv commented 4 years ago

Currently, we implement a lot of really useful functions, but the user might become confused because of the complicated error messages that are generated. We should check as much invariants as possible whenever a metafunction gets called. This not only is pleasant for the end-user, but also ensures we didn't write something bad.

We could also add a configuration variable that enables and/or disables these checks.