ios.cc query

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Sep 8 07:27:00 GMT 2003


David Edelsohn <dje@watson.ibm.com> writes:

| In the following code, why does _S_synced_with_stdio have ios_base::Init::
| prepended while _S_ios_base_init does not?
| 
|   int ios_base::Init::_S_ios_base_init = 0;
|   bool ios_base::Init::_S_synced_with_stdio = true;
| 
| ...
| 
|   ios_base::Init::Init()
|   {
|     if (_S_ios_base_init == 0)

no particular reason.  Since we're in the ios_base::Init::Init,
_S_synced_with_stdio is in scope needs not be quelified.

|       {
|         // Standard streams default to synced with "C" operations.
|         ios_base::Init::_S_synced_with_stdio = true;

-- Gaby



More information about the Libstdc++ mailing list