One last time: annoying warning
Gabriel Dos Reis
gdr at integrable-solutions.net
Fri Sep 27 20:21:32 CEST 2002
Roberto Bagnara <bagnara at cs.unipr.it> writes:
[...]
| What is important is that the GCC people taking care of the standard
| library do the right thing. Since they know that someone may very
| legitimately wish to compile with, e.g., -W -Wall, they write code
| like
|
| virtual iter_type
| do_get_time(iter_type __s, iter_type /*__end*/, ios_base&,
| ios_base::iostate& /*__err*/, tm* /*__t*/) const
| { return __s; }
I'm one of those GCC people taking care of the library and I can
assure you I don't particularly appreciate that style (like some other
things in the V3 STYLE). So, I would say that you should be very
careful in drawing conclusions from things you might read in the V3
source code -- not every one has the same idea of the styles to be used.
[...]
| (stl_alloc.h, lines 120 ff.), ..., you will find hundreds of examples
| like that. Naturally, I am really thankful they do that.
Naturally you'll also see the opposite:
>From stl_algobase.h:
template<typename _InputIter, typename _OutputIter>
inline _OutputIter
__copy(_InputIter __first, _InputIter __last,
_OutputIter __result,
input_iterator_tag)
template<typename _InputIter, typename _OutputIter>
inline _OutputIter
__copy(_InputIter __first, _InputIter __last,
_OutputIter __result,
input_iterator_tag)
and so one.
-- Gaby
More information about the GiNaC-devel
mailing list