This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

`static' functions



Why do some of the V3 files contain static functions, i.e., functions
with internal linkage?

For example:

  template<typename _CharT, typename _OutIter>
    static _OutIter
    _S_output_float(_OutIter __s, ios_base& __io, _CharT __fill,
                    const char* __sptr, size_t __slen)
    {
      // XXX Not currently done: non streambuf_iterator
      return __s;
    }

What's that for?  We just get multiple copies of this function.  Is
that really intended?  Also, we cannot effectively do explicit
instantiation of this function, since it will be static when
instantiated.

Is this necessary?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]