You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially the same code but a different string. Considering how exceptions are, well, exceptional, I think it should not be impossible to get to something like:
using extra_column_in_header = exception<file_name, column_name>;
const char* exception_message_traits<extra_column_in_header>::format_string =
"Extra column \"%s\" in header of file \"%s\".";
using missing_column_in_header = exception<file_name, column_name>;
const char* exception_message_traits<missing_column_in_header >::format_string =
"Missing column \"%s\" in header of file \"%s\".";
or whatever.
The text was updated successfully, but these errors were encountered:
thanks for comment. However, I will not replace the comparatively easy to understand code with something that is only a few lines shorter and uses template-traits-voodoo. Without templates I do not see how one can shorten the code.
Example:
Essentially the same code but a different string. Considering how exceptions are, well, exceptional, I think it should not be impossible to get to something like:
or whatever.
The text was updated successfully, but these errors were encountered: