This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
`static' functions
- To: libstdc++ at gcc dot gnu dot org
- Subject: `static' functions
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 05 Feb 2001 21:28:56 -0800
- Organization: CodeSourcery, LLC
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