[Insight-developers] SmartPointer comparison operators

Aljaz Noe noe@grasp.cis.upenn.edu
Wed, 8 May 2002 13:43:21 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_0002_01C1F696.51952260
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi!

Question: Shouldn't comparison operators (<, >, >=, <=, ...) in SmartPointer
class be declared as const member functions?

Aljaz


------=_NextPart_000_0002_01C1F696.51952260
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D656243817-08052002>Hi!</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D656243817-08052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D656243817-08052002>Question: Shouldn't=20
comparison operators (&lt;, &gt;, &gt;=3D, &lt;=3D, ...) in SmartPointer =
class be=20
declared as const member functions?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D656243817-08052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Aljaz</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0002_01C1F696.51952260--