>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.
>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.
My best code is written with the delete key.
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 asOriginally Posted by Prelude
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.Code:typedef basic_ios<char> ios;
My best code is written with the delete key.