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.
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.