a function is sort of a container for bugs. hope this helps!!https://twitter.com/pressron/status/1019247570231746560 …
I think it's just a matter of matching the definition of a text file. Single newline is a one-line file containing an empty line. No chars is a zero-line file. Violation only arises when you have >=1 chars with no newline at end, thus not a line and not a text file.
-
-
How a file is read in is impl-def though. e.g. a BOM won't count as a character, \n and/or \r is moot, and trigraph is still valid even if C++17 removed them. So all of this is silly!
-
You can think of it as alignment with POSIX, where none of that applies and the definition of text file is as I wrote.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.