Wednesday, July 29, 2009

comp.lang.c++ - 25 new messages in 17 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* template error - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/1d7d6b77e8753579?hl=en
* Notice!!! Cheap Wholesale Fashion Brand pants, Shorts,Jeans==A&F Shorts,Bape
Shorts,Evisu Shorts,etc.G-Star Jean,Ecko Unltd Jean,Evisu Jean,G-Star Jean,etc.
=== All On Site www.fjrjtrade.com (paypal payment) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/e5ab90d96fd8fbaa?hl=en
* ^_^ Look! Look!! Factory promotions Nike Shox NZ, Nike Jordan shoes, Gucci
shoes ect at website www.fjrjtrade.com (paypal payment&free shipping)^_^ - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/0961fedb1d0be09c?hl=en
* Paypal wholesale ---Fashion styles suits,Adidas Suit,ED Hardy Women ect at
www.fjrjtrade.com - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/1d15389a3bed50bb?hl=en
* 2009 Hot sell in Summer !!! Hot cheap wholesale brand&fashion T-shirt (Polo,
AFF,ARMANI,Bape,Gucci ect) at wesite www.fjrjtrade.com (paypal payment) - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/fda81a6f18eff714?hl=en
* Sale at breakdown price MLB jerseys mlb jersey all star, www.fjrjtrade.com -
1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/afee5d211d83d02e?hl=en
* ^_^2009 Summer CHEAP Hot Wholesale Brand Hoodies/sunglasses/T-Shirt/Jeans/
Bags/hats(nike,gucci,lv,chanel...)-【paypal payment】☆→www.fjrjtrade.com - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/819f9d929c05c479?hl=en
* SSO - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/77f7c1c9190e45a7?hl=en
* Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? - 3 messages, 1
author
http://groups.google.com/group/comp.lang.c++/t/40783f7f814400c9?hl=en
* Behaviour of istream_iterator on closed stream - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/b2854b7eb7f63001?hl=en
* Char bit fields - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/978f67a6f5fac1e4?hl=en
* How to split this string correctly? - 3 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/1845370483de2cfa?hl=en
* China factory wholesale NFL,mlb,nhl,nba Jerseys Free Shipping Paypal payment
<www.wtojerseys.com> - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/063ec2aa368da682?hl=en
* < www.guoshitrade.com>China Nike factory sale and wholesale nike shoes (
paypal payment) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/e530395eb2267c79?hl=en
* cheap new style ed hardy hats,ed hardy sunglass for 2009. - 1 messages, 1
author
http://groups.google.com/group/comp.lang.c++/t/5935971f44ed1119?hl=en
* strcpy vs memcpy - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/71a5945deead500c?hl=en
* dealing with lower level programmers - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/f708a2c0cfa8ce2d?hl=en

==============================================================================
TOPIC: template error
http://groups.google.com/group/comp.lang.c++/t/1d7d6b77e8753579?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jul 29 2009 12:04 pm
From: Juha Nieminen


SG wrote:
> You can solve this problem in a number of ways. I'm going to mention
> three:
>
> (A) Replace the using directive with a couple of using
> declarations:
>
> using std::cout;
> using std::endl;
>
> (B) Keep the using directive and put your functions and classes
> in your own namespace N. When you use an unqualified name X
> inside your namespace N, the names in std:: will only be
> considered in case your own namespace doesn't contain an X.
> If your namespace contains an X it will "hide" other Xs from
> the global scope.
>
> (C) Keep the using directive and make sure that you don't
> use names that also live in the std:: namespace.

How about not using the 'using' directive at all? My code has become
much more readable after I stopped using it. Don't believe dissenting
opinions, they are wrong. The code *does* become more readable.


== 2 of 2 ==
Date: Wed, Jul 29 2009 3:39 pm
From: Jerry Coffin


In article <R21cm.128$TB5.88@read4.inet.fi>, nospam@thanks.invalid
says...

[ ... ]

> How about not using the 'using' directive at all? My code has
> become much more readable after I stopped using it. Don't believe
> dissenting opinions, they are wrong. The code *does* become more
> readable.

There are times that a using directive (or at least a using
declaration) can be useful, and there's no real alternative to it.

The canonical example is something like a sort routine. If swap has
been specialized for the type being sorted, we want to use that swap.
If swap has not been specialized for the type, we want to fall back
on using std::swap instead.

We can get that with code something like this:

using std::swap;

template <class T>
void sort(/* ... */) {

// ...
// x1 and x2 are T's.
if (x2 < x1)
swap(x1, s2);
// ...
}

The trick here is simple: if we specify std::swap, then that's what
will be used, even if T provides its own swap. On the other hand, if
we try to specify T's namespace, the code won't compile unless T
actually _does_ provide its own swap (and we don't want that
restriction -- just for example, it would then fail for all built-in
types).

The cure is pretty simple, as shown above. If there's a 'swap' in T's
namespace, argument dependent lookup will find it, and that's what
will get used. Otherwise, because of the using declaration, std::swap
will be found instead.

In the case above, I've used a using declaration, but if (for
example) we were using quite a few different things like this, a
using directive would become more convenient. Just for example, the
code above uses the less-than operator, but for genericity it should
really use a comparison function. Again, std::less<T> might be the
appropriate version (it would be equivalent to what's above) but
again, if T provides its own less(), we'd prefer to use that. In this
case there's not nearly as big a problem though, simply because
std::less<T> will use T's operator< (so all that's usually needed is
to supply operator< if ordering is at all appropriate).

--
Later,
Jerry.

==============================================================================
TOPIC: Notice!!! Cheap Wholesale Fashion Brand pants, Shorts,Jeans==A&F Shorts,
Bape Shorts,Evisu Shorts,etc.G-Star Jean,Ecko Unltd Jean,Evisu Jean,G-Star
Jean,etc.=== All On Site www.fjrjtrade.com (paypal payment)
http://groups.google.com/group/comp.lang.c++/t/e5ab90d96fd8fbaa?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:08 pm
From: candy


Notice!!! Cheap Wholesale Fashion Brand pants, Shorts,Jeans==A&F
Shorts,Bape Shorts,Evisu Shorts,etc.G-Star Jean,Ecko Unltd Jean,Evisu
Jean,G-Star Jean,etc.=== All On Site www.fjrjtrade.com (paypal
payment)


Welcome to visit our website---www.fjrjtrade.com

Pants_Jeans_www.fjrjtrade.com,
cheap wholesale
Crown Holder Pants
http://www.fjrjtrade.com/category-1968-b0-Crown-Holder-Pants.html
A&F Pants
http://www.fjrjtrade.com/category-1292-b0-AF-Pants.html
Affliction Pants
http://www.fjrjtrade.com/category-1293-b0-Affliction-Pants.html
Bape Pants
http://www.fjrjtrade.com/category-1293-b0-Affliction-Pants.html
BBC Pants
Christian Audigier Pants
http://www.fjrjtrade.com/category-1297-b0-Christian-Audigier-Pants.html
Coogi Pants
http://www.fjrjtrade.com/category-1298-b0-Coogi-Pants.html
ED Hardy Pants
http://www.fjrjtrade.com/category-1299-b0-ED-Hardy-Pants.html
Evisu Pants
http://www.fjrjtrade.com/category-1299-b0-ED-Hardy-Pants.html
RMC Pants
http://www.fjrjtrade.com/category-1301-b0-RMC-Pants.html
Rock&Republic Pants
http://www.fjrjtrade.com/category-1973-b0-RockRepublic-Pants.html

Jean_Jeans_www.fjrjtrade.com,
cheap wholesale
Artful Dodger Jean
http://www.fjrjtrade.com/category-1954-b0-Artful-Dodger-Jean.html
BBC Jean
http://www.fjrjtrade.com/category-1955-b0-BBC-Jean.html
Cavalli Jean
http://www.fjrjtrade.com/category-1956-b0-Cavalli-Jean.html
Laguna Beach Jean
http://www.fjrjtrade.com/category-1951-b0-Laguna-Beach-Jean.html
Prada Jean
http://www.fjrjtrade.com/category-1957-b0-Prada-Jean.html
RMC Jean
http://www.fjrjtrade.com/category-1958-b0-RMC-Jean.html
Roca Wear Jean
http://www.fjrjtrade.com/category-1959-b0-Roca-Wear-Jean.html
ZEN Jean
http://www.fjrjtrade.com/category-1950-b0-ZEN-Jean.html
Affliction Jean
http://www.fjrjtrade.com/category-1262-b0-Affliction-Jean.html
Akademiks Jean
http://www.fjrjtrade.com/category-1263-b0-Akademiks-Jean.html
Armani Jean
http://www.fjrjtrade.com/category-1264-b0-Armani-Jean.html
Bape Jean
http://www.fjrjtrade.com/category-1265-b0-Bape-Jean.html
Black Label Jean
http://www.fjrjtrade.com/category-1266-b0-Black-Label-Jean.html
Christian Audigier Jean
http://www.fjrjtrade.com/category-1267-b0-Christian-Audigier-Jean.html
Coogi Jean
http://www.fjrjtrade.com/category-1268-b0-Coogi-Jean.html
Crown Holder Jean
http://www.fjrjtrade.com/category-1269-b0-Crown-Holder-Jean.html
D&G Jean
http://www.fjrjtrade.com/category-1270-b0-DG-Jean.html
Diesel Jean
http://www.fjrjtrade.com/category-1271-b0-Diesel-Jean.html
Ecko Unltd Jean
http://www.fjrjtrade.com/category-1272-b0-Ecko-Unltd-Jean.html
Ed Hardy Jean
http://www.fjrjtrade.com/category-1273-b0-Ed-Hardy-Jean.html
Evisu Jean
http://www.fjrjtrade.com/category-1274-b0-Evisu-Jean.html
G-Star Jean
http://www.fjrjtrade.com/category-1275-b0-G-Star-Jean.html
Gucci Jean
http://www.fjrjtrade.com/category-1276-b0-Gucci-Jean.html
Iceberg Jean
http://www.fjrjtrade.com/category-1277-b0-Iceberg-Jean.html
Jack&Jones Jean
http://www.fjrjtrade.com/category-1278-b0-JackJones-Jean.html
Justcavalli Jean
http://www.fjrjtrade.com/category-1279-b0-Justcavalli-Jean.html
Kanji Jean
http://www.fjrjtrade.com/category-1280-b0-Kanji-Jean.html
LEVI'S Jean
http://www.fjrjtrade.com/category-1281-b0-LEVIS-Jean.html
LRG Jean
http://www.fjrjtrade.com/category-1282-b0-LRG-Jean.html
LV Jean
http://www.fjrjtrade.com/category-1283-b0-LV-Jean.html
Rock&Republic Jean
http://www.fjrjtrade.com/category-1284-b0-Rock-Jean.html
True Relig Jean
http://www.fjrjtrade.com/category-1285-b0-True-Relig-Jean.html
Versace Jean
http://www.fjrjtrade.com/category-1286-b0-Versace-Jean.html

Pants_Jeans_www.fjrjtrade.com,
cheap wholesale
Crown Holder Pants
A&F Pants
Affliction Pants
Bape Pants
BBC Pants
Christian Audigier Pants
Coogi Pants
ED Hardy Pants
Evisu Pants
RMC Pants
Rock&Republic Pants
Jean_Jeans_www.fjrjtrade.com,
cheap wholesale
Artful Dodger Jean
BBC Jean
Cavalli Jean
Laguna Beach Jean
Prada Jean
RMC Jean
Roca Wear Jean
ZEN Jean
Affliction Jean
Akademiks Jean
Armani Jean
Bape Jean
Black Label Jean
Christian Audigier Jean
Coogi Jean
Crown Holder Jean
D&G Jean
Diesel Jean
Ecko Unltd Jean
Ed Hardy Jean
Evisu Jean
G-Star Jean
Gucci Jean
Iceberg Jean
Jack&Jones Jean
Justcavalli Jean
Kanji Jean
LEVI'S Jean
LRG Jean
LV Jean
Rock&Republic Jean
True Relig Jean
Versace Jean

Website:
http://www.fjrjtrade.com


==============================================================================
TOPIC: ^_^ Look! Look!! Factory promotions Nike Shox NZ, Nike Jordan shoes,
Gucci shoes ect at website www.fjrjtrade.com (paypal payment&free shipping)^_^
http://groups.google.com/group/comp.lang.c++/t/0961fedb1d0be09c?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:13 pm
From: candy


^_^ Look! Look!! Factory promotions Nike Shox NZ, Nike Jordan shoes,
Gucci shoes ect at website www.fjrjtrade.com (paypal payment&free
shipping)^_^


LV SHOES
(http://www.fjrjtrade.com/category-940-b0-LV-Shoes.html)
New ACG shoes
Nike Air Max
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
Girl TN
Man Nike Air Max 180
Man Nike Air Max 360 (paypal payment)(www.fjrjtrade.com)
Man Nike Air Max 2009
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
Nike Air Max 87-91
Nike Air Max 95
Nike Air Max 97
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
Nike Air Max 2003
Nike Air Max 2004
Nike Air Max 2005 (paypal payment)(www.fjrjtrade.com)
Nike Air Max 2006
Nike Air Max Ltd
Nike Air Max TN
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
Women Nike Air Max 95
Women Nike Air Max TN
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
Nike Dunk (paypal payment)(www.fjrjtrade.com)
High cup
Nike Dunk
women size (paypal payment)(www.fjrjtrade.com)
NIKE FREE
Nike Rift
Man Nike Rift (paypal payment)(www.fjrjtrade.com)
Women Nike Rift
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
Nike Shox
New Man Nike Shox
New Women Nike Shox (paypal payment)(www.fjrjtrade.com)
Nike Shox Monster
Nike Shox NZ
Nike Shox NZ OZ Fusions
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
Nike Shox OZ
Nike Shox R3
Nike Shox R4
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
Nike Shox TL1
Nike Shox TL3 (paypal payment)(www.fjrjtrade.com)
Nike Shox TL5
Nike Shox Turob
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
OBAMA 08 Shoes
PRADA SHOES
(http://www.fjrjtrade.com/category-945-b0-Prada-Shoes.html )
PUMA SHOES
(http://www.fjrjtrade.com/category-923-b0-Puma-Shoes.html)
RIFT
Sandal (paypal payment)(www.fjrjtrade.com)
Supra shoes
Timberland
(http://www.fjrjtrade.com/category-948-b0-Timberland-Shoes.html )
UGG BOOT
(http://www.fjrjtrade.com/category-922-b0-UGG-Shoes.html)
Ugg Boots
2008 SHOES
Adidas
(http://www.fjrjtrade.com/category-914-b0-Adidas-Shoes.html)
Man Adicolor
Men Adidas
Air Force 1
(http://www.fjrjtrade.com/category-916-b0-Air-Force-one.html)
AF1 Women
Air Force One High
Air force One low
Women Coach shoes (paypal payment)(www.fjrjtrade.com)
ARIMANI SHOES
Women ED Hardy Boots
Ato shoes
Men Ato shoes (paypal payment)(www.fjrjtrade.com)
Women Ato shoes
Suit
BAPE SHOES
CHANEL SHOES (paypal payment)(www.fjrjtrade.com)
CONVERSE shoes
DG SHOES
DSQUARED SHOES (paypal payment)(www.fjrjtrade.com)
FOOTBALL SHOES
GUCCI SHOES
(http://www.fjrjtrade.com/category-935-b0-GUCCI-Shoes.html)
Men Gucci High
Men Gucci Low
Woman Gucci High
Woman Gucci Low
(http://www.fjrjtrade.com/category-935-b0-GUCCI-Shoes.html)
ICE GREAM
James
JORDAN
(http://www.fjrjtrade.com/category-919-b0-Nike-Jordan.html)
AF1 Jordan 1 Fusions
AF1 Jordan 12 Fusions
AF1 Jordan 20 Fusions
AF1 Jordan 23 Fusions (paypal payment)(www.fjrjtrade.com)
Air Jordan11 Jorda13 Fusions
Air Jordan 7 Jordan 8 Fusions
Air Jordan 9 Jordan 23 Fusions (paypal payment)(www.fjrjtrade.com)
jordan6 jordan1 fusions
Jordan LE DMP
Jordan NEW
(http://www.fjrjtrade.com/category-919-b0-Nike-Jordan.html)
JORDAN WOMEN
Man Nike Air Jordan 24
Women AF1 Jordan 5 Fusions
Women AF1 Jordan 12 Fusions (paypal payment)(www.fjrjtrade.com)
Women AF1 Jordan 23 Fusions
Women Jordan 3 Jordan5 Fusions
(http://www.fjrjtrade.com/category-919-b0-Nike-Jordan.html)
Kid shoes
KOBE
LACOSTE SHOES

Website:
http://www.fjrjtrade.com

==============================================================================
TOPIC: Paypal wholesale ---Fashion styles suits,Adidas Suit,ED Hardy Women ect
at www.fjrjtrade.com
http://groups.google.com/group/comp.lang.c++/t/1d15389a3bed50bb?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:15 pm
From: candy

Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-862-b0-Suit.html

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(http://www.fjrjtrade.com/category-868-b0-Lacoste-Man-Suit.html)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-863-b0-Adidas-Suit.html


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(http://www.fjrjtrade.com/category-1620-b0-NBA-Man-Suit.html)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit
(http://www.fjrjtrade.com/category-864-b0-ED-Hardy-Suit.html)

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(http://www.fjrjtrade.com/category-869-b0-Nike-Man-Suit.html)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-867-b0-Juicy-Women-Suit.html

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-864-b0-ED-Hardy-Suit.html

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,puma
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-1926-b0-Puma-Suite.html

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,baby Suit,ED Hardy Women
Suit,Juicy Women Suit
http://www.fjrjtrade.com/category-1925-b0-Baby-Suite.html

Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


Paypal Payment-Fashion styles suits,Adidas Suit,ED Hardy Women
Suit,Juicy Women Suit


Lacoste Man Suit Nike Man Suit NBA Man Suit (paypal payment)
(www.fjrjtrade.com)


wholesale Lacoste polo t shirt
wholesale Lacoste t shirt solid color
wholesale Lacoste sweater
wholesale Lacoste shirt
wholesale Lacoste
wholesale Ralph lauren
wholesale Ralph Lauren polo
wholesale Polo
wholesale Ralph lauren polo t shirt
wholesale Ralph lauren t shirt
wholesale Abercrombie & fitch shirt
wholesale Burberry shirt
wholesale Burberry t shirt
wholesale NBA sports jersey


T-Shirts
http://www.fjrjtrade.com/category-871-b0-T-Shirt.html

wholesale AFF T-shirt
http://www.fjrjtrade.com/category-875-b0-AFF-Man-T-Shirt.html
wholesale ARMANI T-shirt
http://www.fjrjtrade.com/category-1885-b0-Armani-T-Shirt-Women.html
wholesale BAPE T-shirt
http://www.fjrjtrade.com/category-878-b0-Bape-Man-T-Shirt.html
wholesale BBC T-shirt
http://www.fjrjtrade.com/category-879-b0-BBC-Man-T-Shirt.html
wholesale BOSS T-shirt
wholesale Burberry T-shirt
http://www.fjrjtrade.com/category-882-b0-Burberry-Man-T-Shirt.html
wholesale CA T-shirt men's
wholesale CA T-shirt women's
http://www.fjrjtrade.com/category-883-b0-Christan-Audigier-T-Shirt.html
wholesale COOGI T-shirt
http://www.fjrjtrade.com/category-884-b0-Coogi-Man-T-Shirt.html
wholesale CRYSTAL ROCK women's
wholesale D&G T-shirt
http://www.fjrjtrade.com/category-886-b0-DG-Man-T-Shirt.html
wholesale DIESEL T-shirt
http://www.fjrjtrade.com/category-887-b0-Diesel-Man-T-Shirt.html
wholesale DSQUARED T-shirt men's
wholesale DSQUARED T-shirt women's
wholesale Eck? Unltd T-shirt
wholesale ED T-shirt men's
wholesale ED T-shirt women's
http://www.fjrjtrade.com/category-889-b0-ED-Hardy-T-Shirt.html
wholesale EVISU T-shirt
http://www.fjrjtrade.com/category-892-b0-Evisu-Man-T-Shirt.html
wholesale GGG T-shirt
http://www.fjrjtrade.com/category-893-b0-Gino-Green-Global-Man-T-Shirt.html
wholesale G-STAR T-shirt
http://www.fjrjtrade.com/category-894-b0-G-Star-Man-T-Shirt.html
wholesale HLST T-Shirt
wholesale Lacoste T-shirt
http://www.fjrjtrade.com/category-1926-b0-Puma-Suite.html
wholesale Lacoste T-shirt women's
http://www.fjrjtrade.com/category-896-b0-Lacoste-T-Shirt.html
wholesale LRG T-shirt
wholesale O&L T-shirt
wholesale POLO 3 T-shirt
wholesale 4 T-shirt
wholesale POLO 5 T-shirt
wholesale POLO T-shirt men's
POLO T-shirt women's
http://www.fjrjtrade.com/category-903-b0-POLO-T-Shirt.html
Prada T-shirt
RUEHL T-Shirt
SMET T-Shirt men's
SMET T-Shirt women's
http://www.fjrjtrade.com/category-907-b0-SMET-Man-T-Shirt.html
VERSACE T-shirt
http://www.fjrjtrade.com/category-909-b0-Versace-Man-T-Shirt.html
A&F Abercrombie & Fitch T-shirt men's
A&F Abercrombie & Fitch T-shirt women's
http://www.fjrjtrade.com/category-872-b0-AF-T-Shirt.html

http://www.fjrjtrade.com/category-853-b0-Shirt.html

wholesale Lacoste polo t shirt
wholesale Lacoste t shirt solid color
wholesale Lacoste sweater
wholesale Lacoste shirt
wholesale Lacoste
http://www.fjrjtrade.com/category-859-b0-LACOSTE-Man-Shirt.html
wholesale Ralph lauren
wholesale Ralph Lauren polo
wholesale Polo
wholesale Ralph lauren polo t shirt
wholesale Ralph lauren t shirt
wholesale Abercrombie & fitch shirt
wholesale Burberry shirt
wholesale Burberry t shirt
wholesale NBA sports jersey

Website:
http://www.fjrjtrade.com

==============================================================================
TOPIC: 2009 Hot sell in Summer !!! Hot cheap wholesale brand&fashion T-shirt (
Polo,AFF,ARMANI,Bape,Gucci ect) at wesite www.fjrjtrade.com (paypal payment)
http://groups.google.com/group/comp.lang.c++/t/fda81a6f18eff714?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:18 pm
From: candy


Welcome to visit www.fjrjtrade.com


http://www.fjrjtrade.com/category-853-b0-Shirt.html

wholesale Lacoste polo t shirt ( www.fjrjtrade.com )
wholesale Lacoste t shirt solid color ( www.fjrjtrade.com )
wholesale Lacoste sweater ( www.fjrjtrade.com )
wholesale Lacoste shirt ( www.fjrjtrade.com )
wholesale Lacoste ( www.fjrjtrade.com )
wholesale Ralph lauren ( www.fjrjtrade.com )
wholesale Ralph Lauren polo ( www.fjrjtrade.com )
wholesale Polo ( www.fjrjtrade.com )
wholesale Ralph lauren polo t shirt( www.fjrjtrade.com )
wholesale Ralph lauren t shirt ( www.fjrjtrade.com )
wholesale Abercrombie & fitch shirt ( www.fjrjtrade.com )
wholesale Burberry shirt ( www.fjrjtrade.com )
wholesale Burberry t shirt ( www.fjrjtrade.com )
wholesale NBA sports jersey ( www.fjrjtrade.com )

T-Shirts
http://www.fjrjtrade.com/category-871-b0-T-Shirt.html

wholesale AFF T-shirt
http://www.fjrjtrade.com/category-875-b0-AFF-Man-T-Shirt.html
wholesale ARMANI T-shirt
http://www.fjrjtrade.com/category-1885-b0-Armani-T-Shirt-Women.html
wholesale BAPE T-shirt
http://www.fjrjtrade.com/category-878-b0-Bape-Man-T-Shirt.html
wholesale BBC T-shirt
http://www.fjrjtrade.com/category-879-b0-BBC-Man-T-Shirt.html
wholesale BOSS T-shirt
wholesale Burberry T-shirt
http://www.fjrjtrade.com/category-882-b0-Burberry-Man-T-Shirt.html
wholesale CA T-shirt men's
wholesale CA T-shirt women's
http://www.fjrjtrade.com/category-883-b0-Christan-Audigier-T-Shirt.html
wholesale COOGI T-shirt
http://www.fjrjtrade.com/category-884-b0-Coogi-Man-T-Shirt.html
wholesale CRYSTAL ROCK women's
wholesale D&G T-shirt
http://www.fjrjtrade.com/category-886-b0-DG-Man-T-Shirt.html
wholesale DIESEL T-shirt
http://www.fjrjtrade.com/category-887-b0-Diesel-Man-T-Shirt.html
wholesale DSQUARED T-shirt men's
wholesale DSQUARED T-shirt women's
wholesale Eck? Unltd T-shirt
wholesale ED T-shirt men's
wholesale ED T-shirt women's
http://www.fjrjtrade.com/category-889-b0-ED-Hardy-T-Shirt.html
wholesale EVISU T-shirt
http://www.fjrjtrade.com/category-892-b0-Evisu-Man-T-Shirt.html
wholesale GGG T-shirt
http://www.fjrjtrade.com/category-893-b0-Gino-Green-Global-Man-T-Shirt.html
wholesale G-STAR T-shirt
http://www.fjrjtrade.com/category-894-b0-G-Star-Man-T-Shirt.html
wholesale HLST T-Shirt
wholesale Lacoste T-shirt
wholesale Lacoste T-shirt women's
http://www.fjrjtrade.com/category-896-b0-Lacoste-T-Shirt.html
wholesale LRG T-shirt
wholesale O&L T-shirt
wholesale POLO 3 T-shirt
wholesale 4 T-shirt
wholesale POLO 5 T-shirt
wholesale POLO T-shirt men's
POLO T-shirt women's
http://www.fjrjtrade.com/category-903-b0-POLO-T-Shirt.html
Prada T-shirt
RUEHL T-Shirt
SMET T-Shirt men's
SMET T-Shirt women's
http://www.fjrjtrade.com/category-907-b0-SMET-Man-T-Shirt.html
VERSACE T-shirt
http://www.fjrjtrade.com/category-909-b0-Versace-Man-T-Shirt.html
A&F Abercrombie & Fitch T-shirt men's
A&F Abercrombie & Fitch T-shirt women's
http://www.fjrjtrade.com/category-872-b0-AF-T-Shirt.html

http://www.fjrjtrade.com/category-853-b0-Shirt.html

wholesale Lacoste polo t shirt
wholesale Lacoste t shirt solid color
wholesale Lacoste sweater
wholesale Lacoste shirt
wholesale Lacoste
http://www.fjrjtrade.com/category-859-b0-LACOSTE-Man-Shirt.html
wholesale Ralph lauren
wholesale Ralph Lauren polo
wholesale Polo
wholesale Ralph lauren polo t shirt
wholesale Ralph lauren t shirt
wholesale Abercrombie & fitch shirt
wholesale Burberry shirt
wholesale Burberry t shirt
wholesale NBA sports jersey

Website:
http://www.fjrjtrade.com


==============================================================================
TOPIC: Sale at breakdown price MLB jerseys mlb jersey all star, www.fjrjtrade.
com
http://groups.google.com/group/comp.lang.c++/t/afee5d211d83d02e?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:22 pm
From: candy

AAA quality clothes cheap wholesale from china. (www.fjrjtrade.com)
NFL jersey wholesale
(http://www.fjrjtrade.com/category-1359-b0-NFL-Jerseys.html)
NFL NBA MLB NHL soccer soccer jerseys (www.fjrjtrade.com)
nike brand,MLB jerseys china supplier (www.fjrjtrade.com)
MLB jerseys china wholesaler.
(http://www.fjrjtrade.com/category-1358-b0-MLB-Jerseys.html)
wholesale MLB jerseys.
(http://www.fjrjtrade.com/category-1358-b0-MLB-Jerseys.html)
NFL shop,,NFL NBA MLB NHL jerser wholesale,NFL NBA MLB NHL
(www.fjrjtrade.com)
jersey supplier(www.fjrjtrade.com)
NFL NBA MLB NHL jersey korea supplier (www.fjrjtrade.com)
NFL NBA jersey stock (www.fjrjtrade.com)
alibaba,wholesale NFL NBA MLB NHL jerseys.(www.fjrjtrade.com)
soccer jersey china supplier (www.fjrjtrade.com)
soccer jerseys china wholesale.(www.fjrjtrade.com)
wholesale soccer jersey,supply soccer jerseys (www.fjrjtrade.com)
NFL NBA MLB NHL copy jersey (www.fjrjtrade.com)
copy www.fjrjtrade.com paypal paymentjerseys from china
(www.fjrjtrade.com)
NFL jerseys from china.(www.fjrjtrade.com)
NBA www.fjrjtrade.com paypal payment shop (www.fjrjtrade.com)
NFL jersey wholesale womens NBA jersey (www.fjrjtrade.com)
NBA jersey sale (www.fjrjtrade.com)
cheap authentic NBA jersey (www.fjrjtrade.com)
07 jersey NBA star (www.fjrjtrade.com)
NBA jersey numbers (www.fjrjtrade.com)
NBA vintage jersey NBA throw back jersey (www.fjrjtrade.com)
NBA jersey dress for woman (www.fjrjtrade.com)
reebok NBA jersey (www.fjrjtrade.com)
NBA jersey for toddler (www.fjrjtrade.com)
old NBA jersey (www.fjrjtrade.com)
youth NBA swingman jersey (www.fjrjtrade.com)
NBA authentic basketball jersey (www.fjrjtrade.com)
basketball jersey NBA new style (www.fjrjtrade.com)
NBA all star game jersey (www.fjrjtrade.com)
NBA new jersey (www.fjrjtrade.com)
adidas NBA jersey (www.fjrjtrade.com)
official NBA jersey (www.fjrjtrade.com)
classics hardwood jersey NBA (www.fjrjtrade.com)
old school NBA jersey (www.fjrjtrade.com)
NBA jersey for woman (www.fjrjtrade.com)
classic NBA jersey (www.fjrjtrade.com)
NFL jersey korea supplier(www.fjrjtrade.com)
mitchell and ness NBA jersey (www.fjrjtrade.com)
2009 game jersey NBA star (www.fjrjtrade.com)
alternate jersey NBA (www.fjrjtrade.com)
best selling NBA jersey (www.fjrjtrade.com)
NBA jersey card (www.fjrjtrade.com)
authenic NBA jersey (www.fjrjtrade.com)
discount NBA jersey (www.fjrjtrade.com)
Wholesale MLB jerseys,paypal,cheap MLB jersey(www.fjrjtrade.com)
wholesale football jerseys,(www.fjrjtrade.com)
reebok MLB player jerseys,(www.fjrjtrade.com)
authentic MLB jerseys,discount MLB
jerseys,mitchell ness jerseys,throwback (www.fjrjtrade.com)
Nice jerseys,replica MLB jerseys,(www.fjrjtrade.com)
women MLB jerseys,youth MLB (www.fjrjtrade.com)
jerseys,official MLB jerseys,(www.fjrjtrade.com)
pro Bowl jerseys,super bowl jerseys,(www.fjrjtrade.com)
nhljerseys,hockey jerseys,nba jerseys,(www.fjrjtrade.com)
all star jersey,mlb baseball jerseys (www.fjrjtrade.com)
(www.fjrjtrade.com) paypal payment


http://www.fjrjtrade.com


==============================================================================
TOPIC: ^_^2009 Summer CHEAP Hot Wholesale Brand Hoodies/sunglasses/T-Shirt/
Jeans/Bags/hats(nike,gucci,lv,chanel...)-【paypal payment】☆→www.fjrjtrade.com
http://groups.google.com/group/comp.lang.c++/t/819f9d929c05c479?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 12:26 pm
From: candy

wholesale discounts authentic UGG shoes
(http://www.fjrjtrade.com/category-922-b0-UGG-Shoes.html)
nike sneakers
AF1 shoes
(http://www.fjrjtrade.com/category-916-b0-Air-Force-one.html)
adidas 35th shoes
(http://www.fjrjtrade.com/category-914-b0-Adidas-Shoes.html)
nike shoes,jordan shoes
(http://www.fjrjtrade.com/category-919-b0-Nike-Jordan.html)
Air Force 1 shoes
kids shoes
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
nike air max TN shoes
nike MAX LTD shoes
nike air MAX 180 sports shoes
nike air max 360 basketball shoes
nike air max 2003 running shoes
nike air max 97 sport shoes
nike air max 95 basketball shoes
nike air max 90 running shoes
nike air max 87 fashion shoes
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
nike Shox TL1 men shoes
nike shox TL3 sports shoes
nike shox NZ running shoes
nike shox OZ basketball shoes
nike shox R3 sport shoes
nike shox R4 fashion shoes
nike shox R5 running shoes
puma shoes
(http://www.fjrjtrade.com/category-923-b0-Puma-Shoes.html)
bape shoes
(http://www.fjrjtrade.com/category-1852-b0-Bape-shoes.html )
Gucci shoes
(http://www.fjrjtrade.com/category-935-b0-GUCCI-Shoes.html)
Lacoste shoes
(http://www.fjrjtrade.com/category-937-b0-Lacoste-Shoes.html )
LV shoes
(http://www.fjrjtrade.com/category-940-b0-LV-Shoes.html)
Timberland shoes
(http://www.fjrjtrade.com/category-948-b0-Timberland-Shoes.html )
Evisu shoes
(http://www.fjrjtrade.com/category-933-b0-Evisu-Shoes.html)
D&G shoes
(http://www.fjrjtrade.com/category-929-b0-DG-Shoes.html )
nike running
prada shoes
(http://www.fjrjtrade.com/category-945-b0-Prada-Shoes.html )
DSQ shoes
(http://www.fjrjtrade.com/category-931-b0-DSQUARED-Shoes.html)
nike football shoes
nike DUNK shoes
Rift shoes
(http://www.fjrjtrade.com/category-914-b0-Adidas-Shoes.html)
NBA basketball shoes
adidas running
adidas NBA shoes
adidas 35th anniversary shoes
adidas shoes
adidas football shoes
GGG hoody
(http://www.fjrjtrade.com/category-871-b0-T-Shirt.html)
GGG T-shirt
Armani T-shirt
Armani shirt
armani long t-shirt
AF men and women coat
(http://www.fjrjtrade.com/category-804-b0-Coat.html)
D&G jeans
(http://www.fjrjtrade.com/category-1261-b0-Jean.html)
A&G T-shirt
BBC scanties
BBC jeans
BBC hoody
BBC T-shirt
LRG jeans
LRG hoody
LRG T-shirt
Bape jeans
Bape hoody
Bape t-shirt
Evisu long t-shit
Evisu original jeans
Evisu jeans wear
Evisu hoody
Evisu jeans
Evisu T-shirt
POLO T-shirt
http://www.fjrjtrade.com/category-903-b0-POLO-T-Shirt.html
Googi jeans
Googi hoody
Googi T-shirt
juicy
10Deep jeans
10 Deep hoody
10Deep T-shirt
Lacoste T-shirt
Burberry jacket
(http://www.fjrjtrade.com/category-822-b0-Jacket.html )
Buberry T-shirt
Buberry shirt
(http://www.fjrjtrade.com/category-853-b0-Shirt.html )
ED hardy hoody
ED hardy jeans

wholesale Lacoste polo t shirt
wholesale Lacoste t shirt solid color
wholesale Lacoste shirt
wholesale Lacoste
wholesale Ralph laurn
wholesale Ralph Lauren polo
wholesale Polo
wholesale Ralph lauren polo t shirt
wholesale Ralph lauren t shirt
wholesale Abercrombie & fitch shirt
wholesale Burberry shirt
wholesale Burberry t shirt
wholesale NBA sports jersey
(http://www.fjrjtrade.com/category-1357-b0-Jerseys.html )

http://www.fjrjtrade.com


==============================================================================
TOPIC: SSO
http://groups.google.com/group/comp.lang.c++/t/77f7c1c9190e45a7?hl=en
==============================================================================

== 1 of 3 ==
Date: Wed, Jul 29 2009 12:46 pm
From: tni


Juha Nieminen wrote:
> tni wrote:
>>> I don't see how that would be the case. With a regular CoW string a
>>> copy entails assigning one pointer and updating one counter at the end
>>> of that pointer.
>> Not for a multi-threaded environment.
>
> If you are going to copy a string from one thread to another, I
> believe you will need a locking mechanism regardless of how the string
> has been implemented.

But not at the string level.

> I don't see how SSO would avoid the need. (Unless
> member arrays are always assigned atomically, which I don't think is the
> case.)

The SSO string doesn't need any internal locking/atomicity. Once it's
copied / handed over, that's it, no connection to any previous instance.

If you make a copy of a COW string, and pass it to another thread, two
different string instances living in different threads can have shared
data (in particular a shared reference counter that requires atomic
access; for any other data, you would create a copy and change that copy).

E.g.:

Thread A:
lock(queue)
queue.push_back(str)
unlock(queue)

Thread B:
lock(queue)
retrieve strings
unlock(queue)

With SSO that's perfectly safe without any locking/atomicity in the
string, no shared string data between the threads. With COW, you can
have shared string data between the threads.


== 2 of 3 ==
Date: Wed, Jul 29 2009 1:51 pm
From: "Bo Persson"


Juha Nieminen wrote:
> Bo Persson wrote:
>> This assumes that you pass large strings around by value, but do
>> not change them. Is this a common scenario?
>
> Sorting a vector of strings is not all that uncommon.

std::sort will use swap which is specialized for std::string, it will
just swap the internals.

>
> Heck, simply having a vector of strings in the first place: When
> the vector capacity grows, all the strings are copied to another
> place.

This is a harder problem, but can be solved for a specific
implementation using internal knowledge of the std::string. Some
implementations already use move semantics for known library types.

>
> (The new C++ standard will probably alleviate both problems,
> though, with the introduction of move semantics, which will
> probably allow swap semantics as well.)

Using move semantics helps making things like vector growth more
portable. It also works for user defined types with move constructors.


Bo Persson


== 3 of 3 ==
Date: Wed, Jul 29 2009 3:17 pm
From: Jerry Coffin


In article <uZ0cm.122$TB5.83@read4.inet.fi>, nospam@thanks.invalid
says...
>
> tni wrote:
> >> I don't see how that would be the case. With a regular CoW string a
> >> copy entails assigning one pointer and updating one counter at the end
> >> of that pointer.
> >
> > Not for a multi-threaded environment.
>
> If you are going to copy a string from one thread to another, I
> believe you will need a locking mechanism regardless of how the string
> has been implemented. I don't see how SSO would avoid the need. (Unless
> member arrays are always assigned atomically, which I don't think is the
> case.)

Not really. As long as you always do a deep copy (regardless of SSO),
you avoid sharing access to the string's internals. Any particular
string can only belong to one thread at any given time. Since there's
never any shared access to any particular data, you never have to
synchronize access to the data.

With a CoW string, (or CoW whatever, but strings are the most common)
you get shared access to the string's data, so when/if you pass the
string to a different thread, you need to ensure that access is
properly synchronized.

All this, of course, assumes that you pass your string by value when
you pass it across thread boundaries. If you pass a reference, it's
going to be up to you to synchronize access to the shared object, as
well as manage the lifetime to ensure that it lives until both (or
all) threads are finished using it -- but this will be true whether
it uses CoW or not.

--
Later,
Jerry.

==============================================================================
TOPIC: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3?
http://groups.google.com/group/comp.lang.c++/t/40783f7f814400c9?hl=en
==============================================================================

== 1 of 3 ==
Date: Wed, Jul 29 2009 2:10 pm
From: Jon Harrop


learn2code@yourdesk.com wrote:
> I would hate to see the "major production-code system" that relied on GC.
> I can tell you this with certainty, no bank, insurance company, airline,
> or any other online realtime operation uses such nonsense. Of course they
> have some bits here and there written in C++ but the code that keeps them
> online and serving customers is written in COBOL, assembler or Ada and
> doesn't need or have GC. That's production.

That has not been true for decades. Here is a trivial counter example of
Jane St. Capital using OCaml in the finance industry:

http://ocaml.janestreet.com/?q=node/61

My company specializes in the use of OCaml and F# for high performance
technical computing including scientific computing and finance. These
garbage collected languages are common there precisely because they make it
easy to implement complicated algorithms and data structures very
efficiently.

For example, I recently implemented QR decomposition via Householder
reductions in F# that was generic over the element type. I wrote it for fun
but it turned out to be 3x faster than the Intel MKL and 35x shorter than
the reference implementation in LAPACK.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u


== 2 of 3 ==
Date: Wed, Jul 29 2009 1:58 pm
From: Jon Harrop


Martin wrote:
> There's little demand for GC from Ada users for a number of reasons...

The main reason is surely that they are self-selected: former Ada
programmers who wanted the benefits of garbage collection migrated to other
languages and do not demand GC for Ada.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u


== 3 of 3 ==
Date: Wed, Jul 29 2009 2:18 pm
From: Jon Harrop


Dmitry A. Kazakov wrote:
> There are relationships between the object and its clients around the
> program which are far more complex and beyond "you die before me", the
> only relationship maintained by GC.

That is incorrect. You are describing reference counting.

> The point is, relationships between objects is key a part of OO design. To
> leave that to GC in hope that it will somehow sort out things is
> irresponsible. It did not, does not and it will not do.

Note that you were long since disproven by the JVM and CLR.

>> Why not save yourself the trouble and use a real GC, then?
>
> Sure, by using scoped objects whenever possible. That is 90% of all cases.

Functional programming languages are trivial counter examples. Scope alone
cannot even support first-class lexical closures.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u

==============================================================================
TOPIC: Behaviour of istream_iterator on closed stream
http://groups.google.com/group/comp.lang.c++/t/b2854b7eb7f63001?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jul 29 2009 1:16 pm
From: James Kanze


On Jul 29, 12:13 pm, Old Wolf <oldw...@inspire.net.nz> wrote:
> On Jul 29, 10:00 pm, James Kanze <james.ka...@gmail.com> wrote:

> > Either your compiler is broken, or (more likely) you have
> > undefined behavior elsewhere which has corrupted memory, and
> > caused it to fail here.

> You're right, in code immediately following this, for the case
> where no characters were read, I had some bad code. But I did
> change the said code to test if the file opened successfully
> just to be on the safe side!

> The buggy code was like this:

> void foo( unsigned char *buffer, size_t buf_len )
> {
> std::fill_n(buffer, buffer + buf_len, 0);
> }

> Obviously it should be fill instead of fill_n. But the
> compiler did not give a warning. I would have expected a
> warning from passing a pointer for the second argument instead
> of a count. But, fill_n is implemented as a template function
> with all parameter types as template parameters. So fill_n
> looped, decrementing the second argument until it compared
> equal to 0!

> Hopefully something in C++1x would help the compiler to
> diagnose this bug..

Concepts. But they've been dropped from C++0x.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34


== 2 of 2 ==
Date: Wed, Jul 29 2009 1:35 pm
From: Pete Becker


James Kanze wrote:
> On Jul 29, 12:13 pm, Old Wolf <oldw...@inspire.net.nz> wrote:
>
>> Hopefully something in C++1x would help the compiler to
>> diagnose this bug..
>
> Concepts. But they've been dropped from C++0x.
>

But they will be in C++1x. <g>

--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of
"The Standard C++ Library Extensions: a Tutorial and Reference"
(www.petebecker.com/tr1book)

==============================================================================
TOPIC: Char bit fields
http://groups.google.com/group/comp.lang.c++/t/978f67a6f5fac1e4?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 1:18 pm
From: James Kanze


On Jul 29, 4:43 pm, Jerry Coffin <jerryvcof...@yahoo.com> wrote:
> In article <3432ad08-4388-47fd-9193-d4f28d3944e4
> @t13g2000yqt.googlegroups.com>, james.ka...@gmail.com says...
> > On Jul 28, 2:56 pm, Alex Vinokur
> > <ale...@users.sourceforge.net> wrote:
> > > struct Foo
> > > {
> > > unsigned char : 2;
> > > unsigned char : 6;
> > > };

> > > What is correct sizeof(Foo) ?

> > Either implementation defined or unspecified, I'm not sure
> > which. (Implementation defined means that the
> > implementation must document what it does---in this case,
> > how it lays out bit fields, etc. Unspecified frees the
> > implementation of the documentation requirement.)

> I believe documentation is required:

> §9.6/1: "Allocation of bit-fields within a class object is
> implementation-defined. Alignment of bit-fields is
> implementation- defined."

Then documentation is required. (Good luck on finding it,
however.)

Thanks for looking it up for me. (I could have looked it up as
well, but was just too lazy to.)

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

==============================================================================
TOPIC: How to split this string correctly?
http://groups.google.com/group/comp.lang.c++/t/1845370483de2cfa?hl=en
==============================================================================

== 1 of 3 ==
Date: Wed, Jul 29 2009 1:24 pm
From: Digital Puer


I have the following std::string contents:

"I want to go"--and with emphasis--"right now," he said.


I would like to split this string into six substrings:

"I want to go"
--
and with emphasis
--
"right now,"
he said.


Is there a way to do this splitting? I am on Linux and can use
Boost libraries (I know there is some regex library, but I have never
used it).

I can potentially use another language. Does Python or Java have
support for this?


== 2 of 3 ==
Date: Wed, Jul 29 2009 2:27 pm
From: Victor Bazarov


Digital Puer wrote:
> I have the following std::string contents:
>
> "I want to go"--and with emphasis--"right now," he said.
>
>
> I would like to split this string into six substrings:
>
> "I want to go"
> --
> and with emphasis
> --
> "right now,"
> he said.

Why? What makes those substrings especially interesting?

> Is there a way to do this splitting?

Yes. The field is called "programming", the area is "string
manipulation". You figure out the algorithm and then you write that
algorithm in terms of the language of your choice.

For example, you want to concatenate "Do" and "my homework" with a space
between them. Suppose you have two strings:

std::string do("Do");
std::string my_homework("my homework");

the concatenation can be done using operator + :

std::string result = do + ' ' + my_homework;

> I am on Linux and can use
> Boost libraries (I know there is some regex library, but I have never
> used it).

So don't. You don't need to. The Standard library has enough mechanism
for you to do what you need. Start with figuring out the formal
algorithm of splitting your string. Then become familiar with the
standard string class (std::string), most likely with its member 'find'
or 'find_first_of', and its member 'substr'.

> I can potentially use another language. Does Python or Java have
> support for this?

Yes, they do.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


== 3 of 3 ==
Date: Wed, Jul 29 2009 3:26 pm
From: Digital Puer


On Jul 29, 2:27 pm, Victor Bazarov <v.Abaza...@comAcast.net> wrote:
> Digital Puer wrote:
> > I have the following std::string contents:
>
> > "I want to go"--and with emphasis--"right now," he said.
>
> > I would like to split this string into six substrings:
>
> > "I want to go"
> > --
> > and with emphasis
> > --
> > "right now,"
> > he said.
>
> Why?  What makes those substrings especially interesting?


They are not interesting because it is a contrived
example representing a larger class of problem.

>
> > Is there a way to do this splitting?
>
> Yes.  The field is called "programming", the area is "string
> manipulation".  You figure out the algorithm and then you write that
> algorithm in terms of the language of your choice.
>
> For example, you want to concatenate "Do" and "my homework" with a space
> between them.  Suppose you have two strings:
>
>      std::string do("Do");
>      std::string my_homework("my homework");
>
> the concatenation can be done using operator + :
>
>      std::string result = do + ' ' + my_homework;


Good job. That is string concatentation, not splitting.
Did you learn software engineering through a
Cracker Jack box? Congratulations.

>  > I am on Linux and can use
>
> > Boost libraries (I know there is some regex library, but I have never
> > used it).
>
> So don't.  You don't need to.  The Standard library has enough mechanism
> for you to do what you need.  Start with figuring out the formal
> algorithm of splitting your string.  Then become familiar with the
> standard string class (std::string), most likely with its member 'find'
> or 'find_first_of', and its member 'substr'.
>
> > I can potentially use another language. Does Python or Java have
> > support for this?
>
> Yes, they do.
>


No. That is not what I am looking for. Let me be
more specific. Is there a way to do the split
on a pattern? In my example, I would like to split:

"I want to go"--and with emphasis--"right now," he said.

I don't really care what the the "--" is, only that it is not
an alphanumeric charater or a quotation mark. I would like
to split between go" and -- and retain both as tokens.

I know that std::string.find() does not allow you
to use a pattern.

Any non-pissy answers would be appreciated.

==============================================================================
TOPIC: China factory wholesale NFL,mlb,nhl,nba Jerseys Free Shipping Paypal
payment <www.wtojerseys.com>
http://groups.google.com/group/comp.lang.c++/t/063ec2aa368da682?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 2:14 pm
From: asd


ALL ARE IN HAND,FAST SHIPMENT!


We use EMS,it usually takes 4-7 days arrive your hand!
BRAND NEW WITH tAG (NWT)
FASTEST SHIPPING PROMIS
SIZE:M,L,XL,XXL48,50,52,54
M48:81--65cm(length-width)
L50:83--66cm(length-width)
XL52:85--67cm(length-width)
XXL54:88--67cm( length-width)


We offer money back(not include shipment) guarantee on all my
jerseys,
if you are not happy you can return it for a FULL REFUND as long as
the item is in the same condition that you received.
ALL LETTERS AND NUMBERS ARE SEWN ON!!!


High Quality Promised!!!


and you can mix the order!!!


Arizona Cardinals(www.wtojerseys.com)
Atlanta Falcons(www.wtojerseys.com)
Baltimore Ravens(www.wtojerseys.com)
Buffalo Bills(www.wtojerseys.com)
Carolina Panthers(www.wtojerseys.com)
Chicago Bears(www.wtojerseys.com)
Cincinnati Bengals(www.wtojerseys.com)
Cleveland Browns(www.wtojerseys.com)
Dallas Cowboys(www.wtojerseys.com)
Denver Broncos(www.wtojerseys.com)
Detroit Lions(www.wtojerseys.com)
Green Bay Packers(www.wtojerseys.com)
Houston Texans(www.wtojerseys.com)
Indianapolis Colts(www.wtojerseys.com)
Jacksonville Jaguars(www.wtojerseys.com)
Kansas City Chiefs(www.wtojerseys.com)
Miami Dolphins(www.wtojerseys.com)
Minnesota Vikings(www.wtojerseys.com)
New England Patriots(www.wtojerseys.com)
New Orleans Saints(www.wtojerseys.com)
New York Giants(www.wtojerseys.com)
San Francisco 49ers(www.wtojerseys.com)
Seattle Seahawks(www.wtojerseys.com)
St. Louis Rams(www.wtojerseys.com)
Tampa Bay Buccaneers(www.wtojerseys.com)
Tennessee Titans(www.wtojerseys.com)
Washington Redskins(www.wtojerseys.com)
New York Jets(www.wtojerseys.com)
Oakland Raiders(www.wtojerseys.com)
Philadelphia Eagles(www.wtojerseys.com)
Pittsburgh Steelers(www.wtojerseys.com)
San Diego Chargers(www.wtojerseys.com)

==============================================================================
TOPIC: < www.guoshitrade.com>China Nike factory sale and wholesale nike shoes (
paypal payment)
http://groups.google.com/group/comp.lang.c++/t/e530395eb2267c79?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 2:18 pm
From: wholesale-af1


www.guoshitrade.com wholesale Nike wholesale - Nike shoes wholesale.
Nike shoes: Nike shox air force1 jordan TL NZ R4 Turbo Monster
shoes,Nike air max 95 360 97 2003 TN Plus shoes,Nike air jordan
shoes,Nike air dunk shoes. We sale wholesale Nike shoes(Nike
trainers,
Nike sneakers, Nike basketball shoes, Nike running shoes, Nike Men's
shoes, Nike women's shoes, Nike mens shoes, Nike womens shoes, nike
cheap discount shoes). Nike shox shoes wholesale(Nike shox tl - shox
tl 3 III, Nike shox nz,Nike shox r4,Nike shox r5,Nike shox turbo,nike
shox monster,nike shox VC OZ Ride shoes). Nike air max shoes
wholesale(Nike air max tn plus,Nike air max 360,Nike air max 95, Nike
air max 97, Nike air max 2003,Nike air max 2004,Nike air max 90).
Nike
shoes wholesale other sport shoes(retro nike air jordan 21 XXI 11 XI
13 20,nike air dunk low min high, Nike air rift,Nike air force 1
one).
China Nike factory sale and wholesale nike shoes to your nike shop &
nike store, Nike wholesale nike shoes to United States America and
England and United Kingdom and Europe at www.guoshitrade.com
Nike Shoes Wholesale - Nike Air Dunk:
Nike Dunk , Nike Dunks, Nike Air Dunk, Nike Air Dunks, Nike Dunks
Dunk
low,Nike Air Dunks Dunk High , Nike Dunk mid Shoes.

==============================================================================
TOPIC: cheap new style ed hardy hats,ed hardy sunglass for 2009.
http://groups.google.com/group/comp.lang.c++/t/5935971f44ed1119?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 2:48 pm
From: nike86shoes


welcome to visit our website http://www.cheap4clothing.com to shop
more cheap name brand clothing on-line. We'll provide the fast shiping
for you by express mail. Hope to eastblish a long-term cooperation
with you in the near future.

==============================================================================
TOPIC: strcpy vs memcpy
http://groups.google.com/group/comp.lang.c++/t/71a5945deead500c?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 2:50 pm
From: Jerry Coffin


In article <X_0cm.123$TB5.53@read4.inet.fi>, nospam@thanks.invalid
says...

[ ... ]

> memcpy() might be more efficient because its implementation might be
> able to copy entire words at a time, rather than single bytes at a time
> (as strcpy() is forced to do).

It's not really forced to do so. At least at one time, Microsoft used
an implementation that scanned for the end, then did the copying in a
separate pass -- and the copying itself was done in 32-bit words.

With a modern CPU, that would probably be a pessimization though --
except under rather special circumstances, anything with a cache will
combine the reads and writes so all transactions with the main memory
happen in cache-line sized chunks (typically substantially larger
than a full word). Such a copy will normally be memory-bound anyway,
so the difference between a really simplistic byte-at-a-time
implementation and a much more complex one that copies entire words
when possible will generally be minuscule.

--
Later,
Jerry.

==============================================================================
TOPIC: dealing with lower level programmers
http://groups.google.com/group/comp.lang.c++/t/f708a2c0cfa8ce2d?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jul 29 2009 3:15 pm
From: Noah Roberts


James Kanze wrote:
> On Jul 28, 2:03 pm, Andrew Tomazos <and...@tomazos.com> wrote:

>> I've seen the phenomenon firsthand, numerous other people have
>> given me firsthand accounts, I've read about it in books. The
>> only reason I can guess that you have not seen it too, is that
>> maybe you've never worked closely with a really good
>> programmer.
>
> I've worked with some of the best, at times. The only reason I
> can guess that you think you've seen it is that you don't know
> what a good program is, so you accept some just as acceptable.

LOL!!!

"I'm right and you can't see that because you suck!"

"No. I'm right and you can't see that because you suck!"

"Actually, the only reason you think that is that you suck!"

"Well, if you didn't suck you'd know that you're clearly mistaken!"

How long you guys intend to keep THAT up? You, Mr. Kanze, seem prone to
this kind of argument. If you can't convince them with absolutisms and
other nonsense, tell them they suck.

NEITHER of you are arguing from an empirical point. There is no such
thing as objectively decidable "good software". To be empirical there
must be a measurable gradient by which to judge. Neither of you has
provided one. After reading the back and forth it seems clear to me
that the definition Mr. Kanze is working with is, "anything not created
by a solo developer," because no amount of examples of people who've
considered solo development projects "good" seems to knock him from his
high horse or pull that gigantic brush from his hand.

People can disagree with you. It's not the end of the world. There's
absolutely no way that, "...it's a proven fact," that solo developers
can't create something good because nobody agrees what constitutes
"good" in the software industry. Ask one industry expert and you'll get
an entirely different answer from the next one. Neither is wrong.

Anyway, I'll leave you to this undecidable argument. If you keep
insisting how much better you are than each other one of you might cave,
but I seriously doubt it. Argument from authority is even less
convincing when you declare yourself the authority.


==============================================================================

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: