🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1739

No operator-> for iterators in STL

#1739
From: Gerald Loeffler
Date: Fri, 18 Aug 1995 17:26
36 lines
1211 bytes
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. ]
Technical Details
Message-ID: <MATT.95Aug18102602@physics2.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: gl@coil.mdy.univie.ac.at (Gerald Loeffler)
Newsgroups: comp.std.c++
Subject: No operator-> for iterators in STL
Date: 18 Aug 1995 17:26:02 GMT
Organization: Inst. for Theoretical Chemistry / Univ. of Vienna
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <MATT.95Aug18102602@physics2.Berkeley.EDU>
NNTP-Posting-Host: physics2.berkeley.edu