Topic: typo in example 24.3.3/par4 ?
Author: markus.mauhart@nospamm.chello.at ("Markus Mauhart")
Date: Fri, 15 Nov 2002 17:10:01 +0000 (UTC) Raw View
[lib.std.iterator.tags] 24.3.3
The example in par4 seems to have meaningless
template arguments:
----------------
4 [Example: If a C + + program wants to define a bidirectional
iterator for some data structure containing double and such
that it works on a large memory model of the implementation,
it can do so with:
class MyIterator :
public iterator <bidirectional_iterator_tag
, double, long, T*, T&>
{
// code implementing ++, etc.
};
5 Then there is no need to specialize the iterator_traits
template. -end example]
----------------
Shouldnt this be ...
class MyIterator :
public iterator <bidirectional_iterator_tag
, double, long, double __far*, double __far&>
{
// code implementing ++, etc.
};
?
(the implementation specific large memory model with ptrdif=long and
__far has been introduced in a Note, 2 pages before, 24.3.1/par2)
Thanks,
Markus.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]