🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Explicit? What's that?

#3409
From: Fergus Henderson
Date: Thu, 22 Feb 1996 20:21
23 lines
1658 bytes
clamage@Eng.Sun.COM (Steve Clamage) writes:

>The only advantage I can see for an "explicit" conversion operator is
>that a name for a complicated type, especially one involving pointers
>or references, might be inconvenient and not intuitive. In that
>case you might prefer to be able to cast to char**& instead of thinking
>up a name for that type.

`explicit' conversion operations might be useful in templates.
They would make it easy for a template to work both with data types
that have an explicit conversion operator and also with data types
which just use an implicit conversion operator.

--
Fergus Henderson             	WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au              	PGP: finger fjh@128.250.37.3
---
[ To submit articles: try just posting with your news-reader.
                      If that fails, use mailto:std-c++@ncar.ucar.edu
  FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu.
]
Technical Details
Message-ID: <4gidr8$86n@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <4gg7df$76c@charnel.ecst.csuchico.edu> <4gg8p5$lcq@engnews1.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Message-ID: <4gidr8$86n@mulga.cs.mu.OZ.AU>
X-Original-Date: 22 Feb 1996 18:49:12 GMT
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 22 Feb 96 20:21:07 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: Re: Explicit? What's that?
Organization: Comp Sci, University of Melbourne
References: <4gg7df$76c@charnel.ecst.csuchico.edu> <4gg8p5$lcq@engnews1.Eng.Sun.COM>
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMSzQP+EDnX0m9pzZAQEJ9QGAhFIwhP9WA4t5w0etQA4Xj0OQbtOno9ru
 eMxCMafzTx17hEDkZTOrHBiwGdH5Qv88
 =LrrS