This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
another effc++ spurious warning?
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Benjamin Kosnik" <bkoz at redhat dot com>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 8 Jul 2004 14:29:01 +0200
- Subject: another effc++ spurious warning?
Benjamin,
I see many instances of this while compiling with -Weffc++:
/home/farfetch/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-v3/include/bits/str
eambuf_iterator.h:235: warning: postfix `std::ostreambuf_iterator<_CharT,
_Traits>& std::ostreambuf_iterator<_CharT, _Traits>::operator++(int) [with
_CharT = wchar_t, _Traits = std::char_traits<wchar_t>]' should return
`std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >'
What is your position on this? I did not check the code, but shouldn't
operator++(int) return a temporary? Or maybe not for output/input iterators?
Giovanni Bajo