Topic: No operator-> for iterators in STL
Author: gl@coil.mdy.univie.ac.at (Gerald Loeffler)
Date: 1995/08/18 Raw View
Distribution:
Hi!
Why is it that for a (dereferencable) iterator i in STL you can do:
(*i).method();
but you can't do:
i->method();
????
Yours,
Gerald
--
Gerald Loeffler
PhD student in Theoretical Biochemistry
EMail: gl@mdy.univie.ac.at
Phone: +43 1 40480 612
Fax: +43 1 4028525
SMail: University of Vienna
Institute for Theoretical Chemistry
Theoretical Biochemistry Group
Waehringerstrasse 17/Parterre
A-1090 Wien, Austria
#include "fancy_ASCII_picture"
#include "funny_statement"
#include "standard_disclaimer"
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]