Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #4667
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: array of objects of parametrized constructor |
| Date | 2011-05-04 21:34 +1200 |
| Message-ID | <92cku1Fj03U18@mid.individual.net> (permalink) |
| References | (1 earlier) <ippke2$6a7$1@dont-email.me> <92bdajFj03U16@mid.individual.net> <ipr4j8$r2v$1@dont-email.me> <92ckamFj04U1@mid.individual.net> <ipr6d0$ihi$1@dont-email.me> |
On 05/ 4/11 09:42 PM, Alf P. Steinbach /Usenet wrote:
> * Ian Collins, on 04.05.2011 11:24:
>> On 05/ 4/11 09:11 PM, Alf P. Steinbach /Usenet wrote:
>>>
>>> If done, it would better look like this:
>>>
>>> int const tmp[] = { 1,2,3,4 };
>>> std::vector<A> a(tmp, tmp+(sizeof(tmp)/sizeof(*tmp)) );
>>
>> You've been secretly reading c.l.c, haven't you Alf??
>
> Sorry, I don't get it.
>
> If you mean c.l.c++ (not the C language group), well I'm an old-timer here. You
> should recognize me. I'm one of your humble clc++m moderators, so you can safely
> assume that I know a bit of C++ and can cough up original arguments. :-)
No, the C group. The regs there love correcting sizeof(A) for
sizeof(*tmp), its one of the group favourites!
--
Ian Collins
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
array of objects of parametrized constructor asit <lipun4u@gmail.com> - 2011-05-03 11:32 -0700
Re: array of objects of parametrized constructor "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-03 21:29 +0200
Re: array of objects of parametrized constructor Ian Collins <ian-news@hotmail.com> - 2011-05-04 10:18 +1200
Re: array of objects of parametrized constructor "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-04 11:11 +0200
Re: array of objects of parametrized constructor Ian Collins <ian-news@hotmail.com> - 2011-05-04 21:24 +1200
Re: array of objects of parametrized constructor "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-04 11:42 +0200
Re: array of objects of parametrized constructor Ian Collins <ian-news@hotmail.com> - 2011-05-04 21:34 +1200
Re: array of objects of parametrized constructor Noah Roberts <dont@email.me> - 2011-05-03 14:27 -0700
Re: array of objects of parametrized constructor Leigh Johnston <leigh@i42.co.uk> - 2011-05-03 23:00 +0100
csiph-web