This patch removes the empty "" when using static_assert(1 + 1 == 3, ""); in the diagnostic:
main.cpp:1:1: error: static_assert failed static_assert(1 + 1 == 3, ""); ^ ~~~~~~~~~~
Differential D39360
[C++11] Don't put empty quotes in static_assert diagnostic. Rakete1111 on Oct 26 2017, 10:34 PM. Authored by
Details
This patch removes the empty "" when using static_assert(1 + 1 == 3, ""); in the diagnostic: main.cpp:1:1: error: static_assert failed static_assert(1 + 1 == 3, ""); ^ ~~~~~~~~~~
Diff Detail Event TimelineComment Actions Why? It seems easier to me to map back if the diagnostic mirrors the code as-written. Comment Actions @kimgr Well, mostly because they bother me a bit, don't know what others think though. I just thought it would be nice if they didn't appear, mainly because there is no need to show empty quotes in the error message. Hmm, you have a point though... Didn't think of that. Thanks +1 |