Undefined behavior - don't do it!
7.21.5.2 2
If stream points to an output stream or an update stream in which the most recent operation was not input [...] otherwise, the behavior is undefined.
N1570
256 for clang by default and 900 for gcc by default.
S.
OK. Thx for the info
Wolf
😊 pleasure all mine
S.
Seems C doesn't have a define magic counterpart 😆
Liam
If one doesn't want to use template meta-programming here, one could utlize static class member as a counter virable, and increase it in its constructor. In this case, create an array with given length will increase the static member. If you print it out in its constructor...