From -8691602675222586897 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,b43d17d27e7171b0 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2000-12-08 07:00:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news.inweb.net.uk!ayres.ftech.net!news.ftech.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: Francis Glassborow Newsgroups: comp.std.c++ Subject: Re: explicit operator T() Date: Fri, 8 Dec 2000 14:59:23 GMT Organization: Southfield Microcomputer SS Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: References: <3A2D10EE.35544D0A@aixigo.de> Reply-To: Francis Glassborow X-Trace: mail2news.demon.co.uk 976287571 mail2news:14130 mail2news mail2news.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 5.00 U Lines: 23 Xref: supernews.google.com comp.std.c++:2823 In article , Gene Bushuyev writes >If you don't want your user-defined operator to be called in implicit >conversions (as you call it accidentally) then probably you don't need >operator at all. Create a function for conversion purposes and call it >explicitly. That works fine for ordinary classes but not necessarily for template classes. Francis Glassborow Association of C & C++ Users 64 Southfield Rd Oxford OX4 1PA +44(0)1865 246490 All opinions are mine and do not represent those of any organisation --- [ 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 ] [ Note that the FAQ URL has changed! Please update your bookmarks. ]