What was filebuf::openprot intended for, and does it have a replacement?
<p>I'm in the middle of fixing some rather old C++ code that used the old-style iostream library, and I came across the following non-compiling lines of code:</p>

<pre><code>::ofstream ofile;
ofile.open("filename", ios::trunc, filebuf::openprot);
</code></pre>

<p>I get this error:</p>

<pre><code>error C2039: 'openprot' : is not a member of 'std::basic_filebuf&lt;_Elem,_Traits&gt;'
</code></pre>

<p>So obviously it's something that's not around any more. The problem is, I can't find any information on what <code>openprot</code> did as a parameter, and I therefore can't replace it with something new, and I'm afraid to remove the parameter altogether.</p>

<p>Anyone with any historical C++ knowledge know what this thing did?</p>
