Is there any reasons - other than historical - to justify the fact std::ifstream/std::ofstream class take a char* and not a std::string to be constructed?
Asked
Active
Viewed 373 times
1
-
2Just to note, they take both in C++11. – hmjd Oct 16 '12 at 12:44
-
Step 1: Get C++11. Step 2: Use the `std::string` constructor. Step 3: ??????? Step 4: PROFIT – chris Oct 16 '12 at 12:45