This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: About endl...
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: About endl...
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 27 Nov 2000 15:01:58 -0800
It's a feature.
<ostream> declares endl to be:
// 27.6.2.7 Standard basic_ostream manipulators
template<typename _CharT, typename _Traits>
basic_ostream<_CharT, _Traits>&
endl(basic_ostream<_CharT, _Traits>& __os)
{ return flush(__os.put(__os.widen('\n'))); }
This is a change from the non-templatized v2.
-benjamin