Article View: borland.public.cppbuilder.nativeapi
Article #6864Re: value of class object
From: Alan Bellingham
Date: Fri, 08 Apr 2005 12:23
Date: Fri, 08 Apr 2005 12:23
14 lines
1168 bytes
1168 bytes
"Simon D" <LightsOnNo1@home.org> wrote:
>Try this
>public:
> operator int(){return iVal;}
Better yet:
public:
operator int() const {return iVal;}
Alan Bellingham
--
ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID:
<cstc51dh09jj5g4sqjsqo6qqfuusen7dkv@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42566160$1@newsgroups.borland.com> <42566c79@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1f4e1214f81b2544 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: value of class object Date: Fri, 08 Apr 2005 13:23:00 +0100 Reply-To: alanb@episys.com Message-ID: <cstc51dh09jj5g4sqjsqo6qqfuusen7dkv@4ax.com> References: <42566160$1@newsgroups.borland.com> <42566c79@newsgroups.borland.com> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1112962978 193.129.251.253 (8 Apr 2005 05:22:58 -0800) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail