🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #5097

Re: [C++] function overloading en typedef

#5097
From: Nicolas Barbier
Date: Thu, 29 May 2003 11:57
30 lines
2146 bytes
Slayerke wrote:

> Nicolas Barbier wrote:

(snip)

>> Weet je toevallig ook nog waarom er geen copy constructor-aanroep gebeurt
>> tussen "constructor" en "tussen a en b"? :-)
> 
> g++ heeft deze al weggeoptimaliseerd, dit moet expliciet afgezet worden:
> -fno-elide-constructors
>            The C++ standard allows an implementation to omit creating a
> tempo-
>            rary which is only used to initialize another object of the
>            same
>            type.  Specifying this option disables that optimization, and
>            forces G++ to call the copy constructor in all cases.
> Dan geeft het (zoals verwacht):
> constructor
> copy constructor
> copy constructor
> tussen a en b
> copy constructor

*Aaaargl*, ik snap het. Ik moet gewoon de standaard lezen als ik de 
volledige semantiek van C++ wil kennen. Maar die wil begint weer snel af te 
brokkelen als ik dergelijke dingen zie ;-).

-- 
Nicolas Barbier
Technical Details
Message-ID: <3ed5f5e9$0$6529$afc38c87@sisyphus.news.be.easynet.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!easynews.net!newsfeed3.easynews.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
References: <3ed4a249.0@news.ruca.ua.ac.be> <lxaBa.230897$me2.30732029@amsnews02.chello.com> <3ed5e932$0$6524$afc38c87@sisyphus.news.be.easynet.net> <zfmBa.26582$1u5.2088@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,3077f069a49c0aca
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-05-29 05:20:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!easynews.net!newsfeed3.easynews.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
Message-ID: <3ed5f5e9$0$6529$afc38c87@sisyphus.news.be.easynet.net>
From: Nicolas Barbier <anti@spam.invalid>
Subject: Re: [C++] function overloading en typedef
Newsgroups: be.comp.programming
Date: Thu, 29 May 2003 13:57:48 +0200
References: <3ed4a249.0@news.ruca.ua.ac.be> <lxaBa.230897$me2.30732029@amsnews02.chello.com> <3ed5e932$0$6524$afc38c87@sisyphus.news.be.easynet.net> <zfmBa.26582$1u5.2088@afrodite.telenet-ops.be>
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Lines: 30
Organization: [ posted via Easynet Belgium ]
NNTP-Posting-Date: 29 May 2003 11:58:33 GMT
NNTP-Posting-Host: 213.193.183.51
X-Trace: 1054209513  6529 [::ffff:213.193.183.51]:33000
X-Complaints-To: abuse@be.easynet.net