Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10972
| From | Victor Bazarov <v.bazarov@comcast.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Creating dynamically allocating abjects with "new"keyword |
| Date | 2011-10-18 11:46 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <j7k6vs$3uk$1@dont-email.me> (permalink) |
| References | (2 earlier) <j7h1lt$ubq$2@dont-email.me> <Xns9F81F0B0FD5A9myfirstnameosapriee@216.196.109.131> <1e886706-dbfd-46fc-b5da-537295ebd422@m19g2000vbm.googlegroups.com> <4e9d80f4$0$4354$7b1e8fa0@news.nbl.fi> <0d49c96f-07f9-4616-8ea0-ebc1149b6357@y39g2000yqd.googlegroups.com> |
On 10/18/2011 11:20 AM, gwowen wrote: > On Oct 18, 2:36 pm, Juha Nieminen<nos...@thanks.invalid> wrote: >> gwowen<gwo...@gmail.com> wrote: >>> Paavo Helde wrote: >> >>>> std::vector can be passed around by value, which is fine most of the times; >> >>> [citation needed] >> >> Citation to what? That it can be passed by value, or that it's "fine >> most of the times"? (The former is a fact, the latter is an opinion.) > > Well, you know, some sort of evidence or measurements that caused you > to form the opinion that its "fine most of the times". Do common > implementations reference count, or are you claiming that deep copies > are fine "most of the times"? If we set aside your mutual desire to have your daily sparring match, then the original claim about passing "around" by value is bogus, of course, unless only one side of it is considered - returning by value - which is often "fine" if RVO is in effect. Passing *into* a function should be done by ref to const to *avoid* performance problems, of course. V -- I do not respond to top-posted replies, please don't ask
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Creating dynamically allocating abjects with "new"keyword conceptualtechnologist@gmail.com - 2011-10-11 06:45 -0700
Re: Creating dynamically allocating abjects with "new"keyword Goran <goran.pusic@gmail.com> - 2011-10-11 06:54 -0700
Re: Creating dynamically allocating abjects with "new"keyword Leigh Johnston <leigh@i42.co.uk> - 2011-10-11 14:55 +0100
Re: Creating dynamically allocating abjects with "new"keyword yatremblay@bel1lin202.(none) (Yannick Tremblay) - 2011-10-17 10:57 +0000
Re: Creating dynamically allocating abjects with "new"keyword Paavo Helde <myfirstname@osa.pri.ee> - 2011-10-17 15:39 -0500
Re: Creating dynamically allocating abjects with "new"keyword Juha Nieminen <nospam@thanks.invalid> - 2011-10-18 08:18 +0000
Re: Creating dynamically allocating abjects with "new"keyword gwowen <gwowen@gmail.com> - 2011-10-18 04:12 -0700
Re: Creating dynamically allocating abjects with "new"keyword Juha Nieminen <nospam@thanks.invalid> - 2011-10-18 13:36 +0000
Re: Creating dynamically allocating abjects with "new"keyword gwowen <gwowen@gmail.com> - 2011-10-18 08:20 -0700
Re: Creating dynamically allocating abjects with "new"keyword Victor Bazarov <v.bazarov@comcast.invalid> - 2011-10-18 11:46 -0400
Re: Creating dynamically allocating abjects with "new"keyword Paavo Helde <myfirstname@osa.pri.ee> - 2011-10-18 17:07 -0500
Re: Creating dynamically allocating abjects with "new"keyword Victor Bazarov <v.bazarov@comcast.invalid> - 2011-10-11 10:22 -0400
Re: Creating dynamically allocating abjects with "new"keyword Leigh Johnston <leigh@i42.co.uk> - 2011-10-11 15:50 +0100
Re: Creating dynamically allocating abjects with "new"keyword conceptualtechnologist@gmail.com - 2011-10-11 10:32 -0700
Re: Creating dynamically allocating abjects with "new"keyword Leigh Johnston <leigh@i42.co.uk> - 2011-10-11 18:48 +0100
Re: Creating dynamically allocating abjects with "new"keyword Leigh Johnston <leigh@i42.co.uk> - 2011-10-11 18:50 +0100
Re: Creating dynamically allocating abjects with "new"keyword Leigh Johnston <leigh@i42.co.uk> - 2011-10-11 18:58 +0100
Re: Creating dynamically allocating abjects with "new"keyword Victor Bazarov <v.bazarov@comcast.invalid> - 2011-10-11 14:16 -0400
csiph-web