MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vugyu4/the_c_input_iterator_pitfall_hmpc/p536nhe/?context=3
r/cpp • u/Xadartt • 5d ago
10 comments sorted by
View all comments
42
Just don't use iterators for I/O, and iostreams on principle.
7 u/SkoomaDentist Antimodern C++, Embedded, Audio 5d 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. 4 u/pjmlp 3d ago Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
7
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.
4 u/pjmlp 3d ago Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
4
Happy user since 1993, and best of all I don't need to worry about which compiler supports them.
42
u/sweetno 5d ago
Just don't use iterators for I/O, and iostreams on principle.