Compiler saying ios::noreplace not a member of std::ios.

This is my line of code I get an error saying noreplace is not a member of std::ios. I'm using DEV C++. Is this a case where some compilers don't offer it.

ofstream outputfile(fname, std::ios::noreplace);
I looked in one C++ book, and it's in there, but not in the C++ primer book.
AFAIK that flag was only considered, but never actually made it into the library, so you shouldn't use it. You can emulate the functionality yourself relatively easily if you need to anyway.
Topic archived. No new replies allowed.