http://groups.google.com/group/comp.lang.c++?hl=en
comp.lang.c++@googlegroups.com
Today's topics:
* c++0x pods and constructors - 2 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5aa5848ff079613f?hl=en
* ◆\(0^◆^0)/◆Wholesale Bramd new original Apple Iphone,Nokia,Blackberry,
Samsung,etc Original brand mobiles "www.toptradea.com" - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9d48bb6cae886d66?hl=en
* wholesale cheap nike air jordan shoes, Nike Jordan Shoes,Nike dunks,Nike Max,
air force one,Nike shox - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/c4c925181729af25?hl=en
* wholesale cheap Nike Dunk Air Dunk Men's Women's shoes,Cheap Nike Dunk Kicks,
gucci Discounts Air Jordans - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/d22eb26a6f7e3771?hl=en
==============================================================================
TOPIC: c++0x pods and constructors
http://groups.google.com/group/comp.lang.c++/t/5aa5848ff079613f?hl=en
==============================================================================
== 1 of 2 ==
Date: Thurs, Oct 29 2009 4:56 pm
From: "dragan"
Jerry Coffin wrote:
> In article <VV%Fm.41268$EU5.38030@newsfe05.iad>,
> spambuster@prodigy.net says...
>>
>> Can C++0x PODs/aggregates have user-defined constructors and still be
>> PODs/aggregates? If not, why not? How about conversion operators?
>> And what is the difference between a POD and an aggregate anyway?
>
> In C++ 0x, the definition of POD no longer includes the requirement
> that the class be an aggregate. Instead, it introduces a couple of
> new terms, "standard layout class" and "trivial class". A POD has to
> be both. A user-defined constructor (by itself) does _not_ prevent
> the class from being a POD -- but you have to be really careful. In
> particular, a non-trivial copy constructor or non-trivial destructor
> _does_ prevent it from being a trivial class (IOW, copying with
> memcpy/memmove should work correctly).
>
> A standard layout class basically says it can't have virtual
> functions or virtual base classes, etc.
>
> As long as it fits both of those sets of restrictions, it's a POD.
> IOW, it _can_ have some "convenience ctors".
That's good news. That a POD can be derived from another class is also good
news. What kind of class it can be after derived though is still unclear to
me: can it have non-static data members?
>
> Obviously I'm leaving out some of the details -- see N2960, §9/5, 9/6
> for the full details.
I downloaded N2960. I like to think in terms of the things a POD can or
cannot have rather than the lingo like: trivially copyable, trivial class,
standard layout, and on and on. In another post I wrote my understanding of
what is and isn't allowed.
== 2 of 2 ==
Date: Thurs, Oct 29 2009 4:49 pm
From: "dragan"
James Kanze wrote:
> The
> difference between a POD and a non-POD is that a POD has
> constructors and destructors which are effectively no-ops, and
> an assignment operator which is the equivalent of memcpy; this
> plays a role in various contexts.
From N2960, I gather that a POD may not have user-defined: default
constructor, copy constructor, copy assignment operator, destructor. In
addition, it may not have virtual functions or virtual base classes, at most
one base class and no non-static data members in the most-derived class.
Other things too, but I find the aforementioned most important.
So, the good news is, that seemingly a POD can have constructors other
than the ones listed above and can also have a non-virtual base class. I'm
not sure what "no non-static data members in the most-derived class" means
exactly. The section needs more examples if you ask me.
==============================================================================
TOPIC: ◆\(0^◆^0)/◆Wholesale Bramd new original Apple Iphone,Nokia,Blackberry,
Samsung,etc Original brand mobiles "www.toptradea.com"
http://groups.google.com/group/comp.lang.c++/t/9d48bb6cae886d66?hl=en
==============================================================================
== 1 of 1 ==
Date: Thurs, Oct 29 2009 6:07 pm
From: peng Selina
◆\(0^◆^0)/◆Wholesale Bramd new original Apple
Iphone,Nokia,Blackberry,Samsung,etc Original brand mobiles
"www.toptradea.com"
"Apple [www.toptradea.com & www.toptradea.606c.com]
Nokia [www.toptradea.com & www.toptradea.606c.com]
Blackberry [www.toptradea.com & www.toptradea.606c.com]
Samsung [www.toptradea.com & www.toptradea.606c.com]
Sony Ericsson [www.toptradea.com & www.toptradea.606c.com]
HTC [www.toptradea.com & www.toptradea.606c.com]
"
==============================================================================
TOPIC: wholesale cheap nike air jordan shoes, Nike Jordan Shoes,Nike dunks,
Nike Max,air force one,Nike shox
http://groups.google.com/group/comp.lang.c++/t/c4c925181729af25?hl=en
==============================================================================
== 1 of 1 ==
Date: Thurs, Oct 29 2009 6:49 pm
From: china supplier
vipshoeshop Co.,Ltd(www.vipshoeshop.com) wholesale nike jordan
sneakers big cheap air jordan sneakers for sale.discount china nike
dunk sb shoes,nike exclusive jordan sneakers,custom nike air force one
sneakers,nike dunk cheap,nike jordan sneakers wholesale,discount supra
shoes wholesale new balance shoes puma shoes,cheap adidas
shoes,authentic jordan sneakers,wholesale nike max 90 sheos,china
supplier nike max 87 max 2009 max 360 shoes,hot max 95 shoes,free
shipping prada shoes,nike retro jordan snekaers,other nike running
shoes,wholesale nike lebron james 6 sneakers,cheap nike zoom kobe 4
sneakers free shipping, kids jordan sneakers wholesale, nike air force
one 1 fusion jordan sneakers,buy sneaker for cheap,nike air max
premium leather sneakers,gucci tennis shoes for discount,high quality
gucci shoes,wholesale jordan fusion sneakers from china supply,cheap
air bape sneakers, China Nike product manufacturer,gucci shoes,supply
puma sneakers timberland shoes,discounts Jordans kicks shoes Cheap
Discount Basketball Sneakers on Sale, Nike Retro Air Jordan Melo M5,
United States Christian Audigier T-Shirt Wholesale Christian Audigier
T-Shirt New cheap Christian Audigier T-Shirt Manufacturers
Suppliers,Wholesale Ed hardy AF T-Shirt, Discounted Louis Vuitton
Designer Handbags Clothes,Chanel and Coach Designer Handbag Wallets
Purse,Replica Louis Vuitton Handbag Accessories,Cheap Gucci handbags
Designer handbags by Gucci leather Purses Belt sunglasses,nike air
zoom signature basketball shoes
==============================================================================
TOPIC: wholesale cheap Nike Dunk Air Dunk Men's Women's shoes,Cheap Nike Dunk
Kicks,gucci Discounts Air Jordans
http://groups.google.com/group/comp.lang.c++/t/d22eb26a6f7e3771?hl=en
==============================================================================
== 1 of 1 ==
Date: Thurs, Oct 29 2009 6:51 pm
From: china supplier
vipshoeshop Co.,Ltd(www.vipshoeshop.com) wholesale nike jordan
sneakers big cheap air jordan sneakers for sale.discount china nike
dunk sb shoes,nike exclusive jordan sneakers,custom nike air force one
sneakers,nike dunk cheap,nike jordan sneakers wholesale,discount supra
shoes wholesale new balance shoes puma shoes,cheap adidas
shoes,authentic jordan sneakers,wholesale nike max 90 sheos,china
supplier nike max 87 max 2009 max 360 shoes,hot max 95 shoes,free
shipping prada shoes,nike retro jordan snekaers,other nike running
shoes,wholesale nike lebron james 6 sneakers,cheap nike zoom kobe 4
sneakers free shipping, kids jordan sneakers wholesale, nike air force
one 1 fusion jordan sneakers,buy sneaker for cheap,nike air max
premium leather sneakers,gucci tennis shoes for discount,high quality
gucci shoes,wholesale jordan fusion sneakers from china supply,cheap
air bape sneakers, China Nike product manufacturer,gucci shoes,supply
puma sneakers timberland shoes,discounts Jordans kicks shoes Cheap
Discount Basketball Sneakers on Sale, Nike Retro Air Jordan Melo M5,
United States Christian Audigier T-Shirt Wholesale Christian Audigier
T-Shirt New cheap Christian Audigier T-Shirt Manufacturers
Suppliers,Wholesale Ed hardy AF T-Shirt, Discounted Louis Vuitton
Designer Handbags Clothes,Chanel and Coach Designer Handbag Wallets
Purse,Replica Louis Vuitton Handbag Accessories,Cheap Gucci handbags
Designer handbags by Gucci leather Purses Belt sunglasses,nike air
zoom signature basketball shoes
==============================================================================
You received this message because you are subscribed to the Google Groups "comp.lang.c++"
group.
To post to this group, visit http://groups.google.com/group/comp.lang.c++?hl=en
To unsubscribe from this group, send email to comp.lang.c+++unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c++/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=en
No comments:
Post a Comment