Is there a way to make static_assert\'s string being dynamically customized and then displayed?
What I mean is something like:
//pseudo code
static_ass
The standard specifies the second argument of static_assert
to be a string literal, so no chance for computation there as far as I can see (except for preprocessor macros).
A compiler could extend the standard and allow const-expressions of approporiate type in this position, but I have no idea if any compiler does.