Topic: map::mapped_type vs. map::referent_type
Author: Attila Feher <Attila.Feher@lmf.ericsson.se>
Date: Mon, 10 Sep 2001 10:15:37 GMT Raw View
Ron Natalie wrote:
>
> "VIctor V. Terber" wrote:
>
> > 1. What states the current standard?
>
> The standard refers to mapped_type and doesn't mention referent_type.
>
> > 2. How to handle this issue most portable?
> > 3. Is any patch existing resolving this potential problem for Visual
> > C++?
>
> The right way would be to fix your implementation. You could just edit
> the file. The "improved" version of the library at www.dinkumware.com
> might help.
What about value_type::second_type? Shouldn't it be the same (talking
about map).
A
---
[ 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.research.att.com/~austern/csc/faq.html ]
Author: victor@terber.de (VIctor V. Terber)
Date: Fri, 7 Sep 2001 18:37:09 GMT Raw View
I have trouble accessing map::mapped_type with Visual C++ 6.0 Service
Patch 5.
Scanning the STL headers I found "referent_type" which seems to have
the same meaning. Furthermore at least an older STL implementation of
Hewlett-Packard used referent_type instead of mapped_type too.
IMO map::mapped_type is requested by the C++/STL standard. The
addition of referent_type was proposed and it was proposed to reject
this proposal in 1996 yet (see
anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/1996/N1014.pdf)
1. What states the current standard?
2. How to handle this issue most portable?
3. Is any patch existing resolving this potential problem for Visual
C++?
Thanks in advance,
Victor V. Terber
---
[ 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.research.att.com/~austern/csc/faq.html ]
Author: Ron Natalie <ron@sensor.com>
Date: Fri, 7 Sep 2001 19:53:45 GMT Raw View
"VIctor V. Terber" wrote:
> 1. What states the current standard?
The standard refers to mapped_type and doesn't mention referent_type.
> 2. How to handle this issue most portable?
> 3. Is any patch existing resolving this potential problem for Visual
> C++?
The right way would be to fix your implementation. You could just edit
the file. The "improved" version of the library at www.dinkumware.com
might help.
---
[ 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.research.att.com/~austern/csc/faq.html ]