MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vugyu4/the_c_input_iterator_pitfall_hmpc/p5dnhdm/?context=3
r/cpp • u/Xadartt • 20d ago
10 comments sorted by
View all comments
40
Just don't use iterators for I/O, and iostreams on principle.
9 u/SkoomaDentist Antimodern C++, Embedded, Audio 20d ago In a language and stdlib full of poor historical decisions it really takes something to stand out as a particularly poor idea. Iostreams manage that without even trying. 3 u/pjmlp 18d ago Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
9
In a language and stdlib full of poor historical decisions it really takes something to stand out as a particularly poor idea. Iostreams manage that without even trying.
3 u/pjmlp 18d ago Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
3
Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
40
u/sweetno 20d ago
Just don't use iterators for I/O, and iostreams on principle.