File stream names

F

Fraser Ross

The standard library allows file name types of char const * and
std::string for opening file based streams. Is there a reason for
omitting the wide character types?

Fraser.
 
V

Victor Bazarov

The standard library allows file name types of char const * and
std::string for opening file based streams. Is there a reason for
omitting the wide character types?

I believe you meant to ask in 'comp.std.c++' (where the rationales for
standard features are discussed).

V
 
B

Bo Persson

Fraser said:
The standard library allows file name types of char const * and
std::string for opening file based streams. Is there a reason for
omitting the wide character types?

One reason is that nobody has come up with a set of semantics that
everybody else can agree on.

Things like, what does a wide string mean on a filesystem with narrow
char file names?


Bo Persson
 
J

James Kanze

The standard library allows file name types of char const * and
std::string for opening file based streams. Is there a reason for
omitting the wide character types?

The most obvious is that it isn't supported in most OS's.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top