Talk:cpp/io/basic fstream
From cppreference.com
(12/06/13) mako: Why is the box for ostream in the inheritance diagram visually manifest as the box for an istream?
- That's a typo -- thanks for pointing it out. --Nate 09:33, 12 June 2012 (PDT)
[edit] fstream seems to be not declared in fstream but in iostream instead (or at least reuires it to be included)
fstream seems to be not declared in fstream but in iostream instead (or at least reuires it to be included). I do not have enough clue to study the standard, my compiler is GCC 5.4.0, using it with -std=c++14 .
- std::fstream is defined in <fstream> in standard C++. Here's a compilable demo showing it work with gcc 5.4.0 with -std=c++14: https://wandbox.org/permlink/btaELSObtTejCEIx . If it differs in your case, perhaps the compiler install is corrupt. --Cubbi (talk) 13:44, 11 April 2017 (PDT)