What’s the maximum length of a source line all compilers are required to accept? Did it change in C++11? If so, what was the old value?
I’m asking this question because I’m doing some heavy preprocessor voodoo (unfortunately, templates won’t cut it), and doing so has a tendency to make the lines big very quickly. I want to stay on the safe side, so I won’t have to worry about the possibility of compiler X on platform Y rejecting my code because of too long lines.
C++2003, Annex B, (informative)
Implementation quantities (sorry, don’t have C++2011 handy)
You didn’t ask about these, but they might be useful, also:
Postscript: It is worth noting what “one logical source line” is. A logical source line is what you have after:
The logical source line is what you have before:
[quotes from C++ 2003, 2.1 Phases of Translation]
So, if the OP’s concern is that the macros expand to beyond a reasonable line length, my answer is irrelevant. If the OP’s concern is that his source code (after dealing with
\,\n) might be too long, my answer stands.