Quote Originally Posted by Prelude
>Is it recommended to use ios::app or ios_base::app?
ios_base::app is recommended simply because the C++ standard makes no mention of ios::app being valid that I can remember.
If you don't mind, I'll correct myself before someone else does. After looking at the standard, both are valid. ios_base is where the openmode app is defined, but ios is a typedef defined as
Code:
typedef basic_ios<char> ios;
Where basic_ios is a template class derived from ios_base. So both will work, both are standard, and which you use looks to be a matter of style.