Wednesday, June 3, 2009

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

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

comp.lang.c++@googlegroups.com

Today's topics:

* C++ Gurus - Is C++ a good choice for public API(s)??? Are there clean ways
to solve known problems there? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/faaac8999a2ece5e?hl=en
* input and forward iterator difference - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/d77d5023ff57aeb7?hl=en
* aufhören mit rauchen in , rauchen aufhören nebenwirkung , nichtraucher
hypnose , nikotin rauchen , zum rauchen aufhören , zum aufhören zu rauchen ,
rauchen nichtraucher , rauchen aufhören 1 , - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/fff65c2185c4d97c?hl=en
* Peel Regional Police: "i'm sure paretns around the world would love to see
the monkey dance and burn for ...BANANAS" - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/741a4e8eb5a0e044?hl=en
* how to recognize whether code is C or C++? - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/8ef69ade6ab46b45?hl=en
* Serialization template classes - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/37cb4bb4cfdff3ad?hl=en
* √√√【www.guomeitrade.com】Discount Brand Shoes Jordan,Bape,Dior,D&G,etc.-
Paypal Payment-Factory Promotion - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/aaff6eddac4dd32d?hl=en
* Template wrapper link query - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/2ee3d82527c1e4f1?hl=en
* Questions about the behavior for argv(0) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/b389eb025fc6bf1f?hl=en
* The best way to retrieve a returned value... by const reference? - 2
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/0f3ad790abe791fc?hl=en
* C++ stuff I can't talk about here - 2 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5017e5dbab2a63a3?hl=en
* Is this String class properly implemented? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/6d95b63c2d32064a?hl=en
* David or Kien - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/7f227b65a6112ff4?hl=en
* cheap (WWW.EdHardy4Sale.COM) hip hop Christian Audigier wholesale - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5b0c5217a172a43b?hl=en
* C# book by Hoang Lam publised by Orreily - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/4fe889c627850e8e?hl=en
* Erase map item via a const_iterator - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/9e8b3cac7f8c6976?hl=en
* Christian audigier t shirts - Christian Audigier Women Shirts - 1 messages,
1 author
http://groups.google.com/group/comp.lang.c++/t/db71759b4cc75a04?hl=en
* Why am I so stupid? - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9c35ffbaed42a937?hl=en

==============================================================================
TOPIC: C++ Gurus - Is C++ a good choice for public API(s)??? Are there clean
ways to solve known problems there?
http://groups.google.com/group/comp.lang.c++/t/faaac8999a2ece5e?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 9:30 am
From: "cr88192"

"blargg" <blargg.ei3@gishpuppy.com> wrote in message
news:blargg.ei3-A9B43E.16115402062009@sn-ip.vsrv-sjc.supernews.net...
> Paavo Helde wrote:
>> blargg wrote:
>> > Write a C wrapper.
>>
>> I second to that. C++ has many advantages over C, but binary
>> interoperability is not one of them. Use C++ interfaces only when both
>> parties are under your control and you can recompile them easily
>> together.
>
> Not just binary, but conceptual interoperability. Almost all languages
> have some means of calling C functions, and perhaps even passing and
> returning structures. Lots of useful libraries can be presented in this
> simple vocabulary. The dividing line between those that work well with a
> C interface and those that need a C++ one is probably between libraries
> that mostly provide data processing functions (like compression, media
> file decoding) and rich data structures (like the STL, or most of boost).


yes, I will add something here:
I have noticed a similar effect before (although, granted, C++ is not my
primary development language), where many APIs seem best served by a clean
(or, almost sterile) and opaque API; yet others consist almost purely of
utility code, which need not have the same design.

for example, the API design which would work well on, say, a physics engine,
would not be the same as the one for, say, ones' geometric-math library
(even if they may typically be used in close relation to each other...).

so, yeah, the best design likely depends a lot on what the library does...

then of course, we have some people who could be paraphrased as "you must
all bow before the greatness of OO"...

==============================================================================
TOPIC: input and forward iterator difference
http://groups.google.com/group/comp.lang.c++/t/d77d5023ff57aeb7?hl=en
==============================================================================

== 1 of 3 ==
Date: Wed, Jun 3 2009 9:44 am
From: Michal


Hallo group members
I wonder what is the difference between the two.

I can read that:
Input iterators are iterators especially designed for sequential input operations, where each value
pointed by the iterator is read only once and then the iterator is incremented.

I also can read:
A Forward Iterator is an iterator that corresponds to the usual intuitive notion of a linear sequence of values. It is possible to use
Forward Iterators (unlike Input Iterators and Output Iterators) in
multipass algorithms.

So my idea is that maybe dereferencing input iterator makes it
automatically move one step forward, while the same action on forward
iterator does not move it.

Unfortunatelly this is not true:
#include <fstream>
#include <iterator>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
ifstream f("/tmp/m.txt");
istream_iterator<int> a(f);
cout << *a << *a << *a;
cout << *a << *a << *a;
++a;
return 0 ;
}

Starting program: /tmp/p3
111111
Program exited normally.


So what is the difference then?

best regards,
Michal


== 2 of 3 ==
Date: Wed, Jun 3 2009 9:57 am
From: Victor Bazarov


Michal wrote:
> Hallo group members
> I wonder what is the difference between the two.
>
> I can read that:
> Input iterators are iterators especially designed for sequential input operations, where each value
> pointed by the iterator is read only once and then the iterator is incremented.
>
> I also can read:
> A Forward Iterator is an iterator that corresponds to the usual intuitive notion of a linear sequence of values. It is possible to use
> Forward Iterators (unlike Input Iterators and Output Iterators) in
> multipass algorithms.
>
> So my idea is that maybe dereferencing input iterator makes it
> automatically move one step forward, while the same action on forward
> iterator does not move it.
>
> Unfortunatelly this is not true:
> #include <fstream>
> #include <iterator>
> #include <iostream>
>
> using namespace std;
>
> int main(int argc, char *argv[])
> {
> ifstream f("/tmp/m.txt");
> istream_iterator<int> a(f);
> cout << *a << *a << *a;
> cout << *a << *a << *a;
> ++a;
> return 0 ;
> }
>
> Starting program: /tmp/p3
> 111111
> Program exited normally.
>
>
> So what is the difference then?

I think the difference it that if you retain the forward iterator value,
then repeat the increments, you're guaranteed to get the same result,
with input/output iterators there is no such guarantee.

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, Jun 3 2009 9:58 am
From: Marcel Müller


Michal wrote:
> Hallo group members
> I wonder what is the difference between the two.

A forward iteration can be repeated. Input iteration not.


Marcel

==============================================================================
TOPIC: aufhören mit rauchen in , rauchen aufhören nebenwirkung , nichtraucher
hypnose , nikotin rauchen , zum rauchen aufhören , zum aufhören zu rauchen ,
rauchen nichtraucher , rauchen aufhören 1 ,
http://groups.google.com/group/comp.lang.c++/t/fff65c2185c4d97c?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 9:52 am
From: visontech457@googlemail.com


aufhören mit rauchen in , rauchen aufhören nebenwirkung , nichtraucher
hypnose , nikotin rauchen , zum rauchen aufhören , zum aufhören zu
rauchen , rauchen nichtraucher , rauchen aufhören 1 ,

*
*
*
+++ STOP RAUCHEN +++ SOFORT NICHTRAUCHER +++
*
http://WWW.STOP-RAUCHEN-SOFORT.NET
http://WWW.STOP-RAUCHEN-SOFORT.NET
http://WWW.STOP-RAUCHEN-SOFORT.NET
http://WWW.STOP-RAUCHEN-SOFORT.NET
http://WWW.STOP-RAUCHEN-SOFORT.NET
http://WWW.STOP-RAUCHEN-SOFORT.NET
*
*
*


rauchen aufhören rückfall man rauchen aufhört
rauch aufhören durch rauchen aufhören
ohne rauchen rauchen aufhören symptome
rauchen aufhören tage rauchfrei durch hypnose
raucher aufhören rauchen aufhören entzugserscheinungen
rauchen aufhören buch aufhören zu rauchen ohne
rauchen abnehmen zigaretten aufhören
rauchen aufhören abnehmen rauchen aufgehört nun
rauchen aufhören effekte man rauchen aufhört
aufhören zu rauchen was raucher aufhören
rauchen aufhören motivation aufhören zu rauchen tipps
rauchen aufhören video rauchen aufhören ohne zuzunehmen
rauchen aufhören spritze aufhören mit rauchen ohne
zum aufhören zu rauchen rauchen aufhören sport
aufgehört rauchen rauchen entzug
aufzuhören zu rauchen rauchen aufhören symptome
aufhören mit rauchen rauchen aufhören die
raucher entwöhnung rauchen aufgehört nun
durch aufhören mit rauchen rauchen aufhören husten
nicht mehr rauchen zum nichtraucher

==============================================================================
TOPIC: Peel Regional Police: "i'm sure paretns around the world would love to
see the monkey dance and burn for ...BANANAS"
http://groups.google.com/group/comp.lang.c++/t/741a4e8eb5a0e044?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 10:30 am
From: rbrns069@googlemail.com


http://agenda24.blogspot.com
http://alturl.com/jw5j
http://alturl.com/r86h

**********************************************


A Brief History On Gadget, "The Strip Club Satellite Repairman Who
Audio & Video Taped His Life" & The Cops
Who Once Again Misused Their Power Only To Set Him Up. Forcing
Prostitutes Out Of Work For Statements And
Using A Prostitute Star Crown Witness Who Tried To Murder The Man On
Trial In Cold Blood While She Plotted A
Heinous Kidnapping Of Another Young Woman.

The Method & Motives:

One Big Fat Faked Case About A Man Cops Hate Because of The Story of
The Beer Bottle, a Dish Rag, An
Empty Police Car and A Couple Of Teens. Police Want To "Say" He Put A
Explosive Device Underneath A Police
Car In 1986.
Peel Police arrest him under any pretense, and use this as a guise to
a motivated murder within the Ontario Jail
(more revealed in next court date Sept 1, 09)
Peel Police Arrest him for allegedly uttering a forged document on
Sept. 22, 2006, After his arrest, Peel Police do
not charge him for what he was arrested for... the man gets bail #1

Peel Police Offer to buy statements of prostitutes that the Peel
Regional Police Vice Unit has forced out of work.
Peel Police Turn To Darya Gunchenko, who conspired to MURDER Hugh
Ford, she confessed to this under oath,
in a court of law....no charges laid on Gunchenko to date

2006 Newspaper Article by Pam Douglas, Staff Reporter, The Brampton
Guardian
http://alturl.com/y95p (LINK)

Race Hate Comments Traced to 180 Derry Road - Home To Peel Regional
Police Vice Unit:
http://alturl.com/jw5j / daryagunchenkonword.blog.de


A Bit About Darya "Dasha" Gunchenko - The Hooker - And Lola Gunchenko
(Mother)

Darya Gunchenko busted for sex acts in the Million Dollar SC, Reveals
under oath she had sex with guy she met
in club, he tells her afterward not to worry, he's a cop. she is under
age. Darya avoids a trip to jail for possession of
fake ID

Lola Gunchenko (mother) faces Pimping / Living on avails of daughters
Earnings
Darya Gunchenko gives a fake statements and the man who is on bail is
arrested again by Peel Police, He goes
for bail and gets Bail #2, in Oct 2006

Darya Gunchenko meets up with family / friends of Gadget after she
gives her false statements to Peel Regional
Police. Afterwards, Darya Gunchenko offers to help Gadget in any way
she can, telling everyone she doesn't know
what is going on, or why her friend was arrested.
Darya Gunchenko provides numbers for lawyers and even goes out to
lunch and dinner and drives around with
friends / family and asks what Gadget is going to do.

Darya conspired to murder Gadget, the man who helped her stay in
school, she blamed her sex acts on this man
instead of on her mother where her money has been going. No charges
laid on Darya Gunchenko after her
admission of Conspiracy To Commit Murder and Kidnapping... under oath
in a court of law.

Darya Gunchenko talks under oath about Gadget's manipulation and
controlling behavior, she states under oat the
Gadget made her wear proper clothing,
made her do homework,
quit smoking and,
he would not let her roam the streets after dark.

**Darya Gunchenko talked about the explosive device and the police car
in court. She confessed she lied to 3
pimps to have Hugh Ford Murdered, and she confessed that she conspired
to kidnap another woman with the
same 3 pimps.

Cst. Sean Gormley files the search warrant return list in 2008 - 2
YEARS - after the initial search of the mans
home, removing the computers for the computer repair business.
**Cst. Sean Gormley #2544 talked about the man's past and the
explosive device, he talked about Darya
Gunchenko's Conspircy to commit Murder.
Cst. Sean Gormley #2544 of Peel Homicide, says it's not his job to
look into Darya Gunchenko's Conspiricy To
Commit MURDER......... that's for the courts.

Cst. Mark Dapat #1919 claims nobody used any gloves when collecting
evidence while Cst. Mike Viozzi #1897
claims numbers on evidence bags aren't used, and he's not sure why
there are numbers on the bags to begin with
as they have never used them in the past before.

Det. Randy Cowan says he doesn't know who provided him with any
information received in 2006, information
which was also used in newspaper articles such as for reporter Pam
Douglas of the Brampton Guardian and other
agencies like the Toronto's Now and Eye Magazine. LINK: http://alturl.com/r86h

**Det. Randy Cowan talked about the man's past and the explosive
device in court. He did not talk about Darya
Gunchenko Conspiricy To Commit Murder or Kidnapping. However, he is
concerned that his boys forgot to include
items from the search warrant and feels they may need retraining for
that type of error.

After Bail #2 Came Arrest #3, (In March of 2007, Gadget is still on an
existing bail)

Peel Regional Police Vice Unit Officer Cst. Jason Watson #1898 offers
Rajni Parmar 20G for a fake statement after
she was forced from her job at the Cannonball Night Club in Brampton
Ontario. He promises she will get her job
back after her statement.... Rajni Parmar goes back to work after a
statement. Gadget is arrested again. (Which
is arrest #3. Arrest #3 also includes theft of a repairman's tools
that Hugh Ford hired to do work on his home.)

**Cst. Jason Watson #1898 talked about the Gadget's past and the
explosive device in court, but did not talk about
Darya Gunchenko's Conspiricy To Commit Murder or her Kidnapping plots.

Cst. Jason Watson of Peel Police meets up with Trevor Mohammed the
home Renovator who was hired to work on
repairs to the man's home. Gadget, who was under house arrest and
living else where was charged with theft for
stealing the renovator's tools. Tools that the renovator left behind,
after disappearing for 2 months.

Friends turned the tools into police in the Spring of 2007,
In the fall of 2008, Crown Council Aimee Gauthier drops theft charges
- well over 1 year after the return of the
un-stolen tools. The theft charges are dropped the same day that Rajni
Parmar (the prostitute and stripper who
was offered 20G) runs out of court avoiding cross examination.

**Cst. Jason Watson #1898 confirms under oath the Peel Vice Unit have
a say as to who the Brampton strip clubs
hire and who the Brampton clubs fire, and that at age 16, Darya
Gunchenko went back to work in the adult strip
joints with the aid of Peel Regional Police.

Peel Police Express their racial hatred in replies to blog post and
make threats on bloggers, and more false
statements are posted. IP Traced To 180 Derry Road - Peel Regional
Police Station.

LINKS

BLOG:
http://agenda24.blogspot.com

Race Hate, Threats, More Fabrications Linked to Peel Police 180 Derry
Road:
http://alturl.com/jw5j / daryagunchenkonword.blog.de (comments)

Newspaper Article:
http://alturl.com/r86h

Video Blog
http://gvideos24.blogspot.com


.


.

.
Gadget.zip, Const. Jason Watson #1898, Cst. Jason Watson #1898, Jason
Watson Peel Regional Police Vice Unit, Const. Sean Gormley #2544,
Cst.Sean Gormley #2544, Sean Gormley Peel Regional Police, Const. Mike
Viozzi #1897, Cst. Mike Viozzi #1897, Mike Viozzi Peel Regional Police
Vice Unit, Const. Mark Dapat #1919, Cst. Mark Dapat #1919, Mark Dapat
Peel Regional Police Vice Unit, Det. Randy Cowan #1195, Randy Cowan
Peel Regional Police Vice Unit, Det. Randall Cowan Peel Regional
Police, Randall Cowan, Peel Police Chief Mike Metcalf, Mike Metcalf,
Peel Police Chief, Aimee Gauthier, Darya Gunchenko, Dasha Gunchenko,
Lisa Manwarren, Rajni Parmar, Lola Gunchenko, Nicole Zammit, Terbite,
Trevor Mohammed, Sgt. Zeke Shah #1171, Const. Noonan #2248, Cst.
Noonnan #2248, Const. Laing #2806, Cst. Laing #2806, Const. Kristine
Arnold, Cst. Kristine Arnold #2366, Const. Martin, Cst. Martin #2350,
Const. Pederson, Cst. Pederson, #3030, Const. Jenkins, Cst. Jenkins
#2892, Const. John Hillie, Cst. John Hillie #2933, Const. Davis, Cst.
Davis #2969, Donald Bijowski, Const. Kyle Binkley, Const. David Laing,
Donald Bijowski, Cst. Kyle Binkley, Cst. David Laing, Cst. Jason
Shawartz, Const. Jason Shawartz, Const. Ostaszewski, Cst. Ostaszewski
#1313, Const. Besco, Cst. Besco #1218, Cannonball Strip Club, Million
Dollar Strip Club, The New Locomotion Strip Club, Midway Invader Strip
Club, Brampton, Mississauga, Peel Region, XcLan, DFP, Digital Fortress
Chat Portal, Hugh Ford, CN Tower, Toronto Zoo, Centerville, Center
Island, Ontario Place, Royal Ontario Museum, ROM, Ontario Science
Center, The Toronto Skydome, The Historic Distillery District,
Historic Fort York Centre, Casa Loma, Peel Police Informant, CP24
News, Toronto Star, Toronto Sun, CTV, Eye Weekly News, Now Toronto,
associated press, The Brampton Guardian, The Mississauga News, Peel
Police Informant, Snitch, Informer, Liar, Rat, Prostitute,Imani
Nakpangi, Hooker, Peel Police Corruption, Peel Police Dishonesty, Peel
Police Bullying, Peel Police Intimidation, Peel Police Harassment,
peel police brutality, Police Brutality, Peel's Finest Gets -A Minus,
Yes We Can By Will.i.am ............ The Gadget Story. The Gadget
Scandal. See the full story of Gadget from the audio and video files
in Gadget.zip, peel regional police, police, regional police, police
force, court, courts, toronto, newsgroups, Toronto lawyer,Hugh Ford,
lawyer, facebook, youtube, peel police pipe band, police brutality,
police dishonesty, peel dirty cops,Tyrone Simmons-McKenzie, dirty
cops, cops on the take, peel cops on the take, drug bust, cops on the
take, blogger, blogs, top blogs, free credit report, credit report,
nbc new, cnn, cnn news, drug war, ebay, computer repair, computer,
canada post, pimps, pimping, hoe, whore, prostitute, stripper, hooker,
street walker, dancer, police informant,first human trafficking
conviction in Canada, informer, snitch, rat, tamara cherry, a-z truck
driving, free classifieds, toronto weather, craigs list, angie's list,
ebay, above the law, jailhouse snitches, the criminal justice system,
criminal justice system, ap, flower town, video blogs, have your say,
gadgets, gadget, 44 year old stripper sues for age discrimination,
Kimberlee Ouwroulis, a 44-year-old stripper, North Preston's Finest,
cannonball cabaret brampton, cannonball strip club, million dollar,
tpi, turned police informant, million dollar saloon, brampton barbar
shops, hair dressing salons in brampton, brampton taxi, brampton
community centres, peel community centres, Simmons-McKenzie, tatoo 80s
Baby, brampton strip clubs, mississauga strip clubs, toronto strip
clubs, peel police pipe band, police servics board, peel police
services board,Anyone with information can call police at 905-453-3311
or Crime Stoppers anonymously at 1-800-222-8477 or
peelcrimestoppers.ca, wikipedia, Police target Nova Scotia pimping
ring, Holly's Fight to Stop Violence: Human face to sex slavery in the
GTA, call police at 905-453-3311 or Peel Crime Stoppers at
1-800-222-8477,peel regional police fraud bureau, peel regional police
assiciation, Tyrone Simmons-McKenzie, peel regional police
headquarters, peel regioal police, the brampton news, dodge charger,
peel regional police department, peel regional police headquarters,
peel regional police 22 division, peel regional police 11 division,
peel regional police 31 division, peel regional police public
complaints,Peel vice unit is leading the country with a handful of
human trafficking charges before the courts, peel regional police
application, peel police & their hall of shame, Canada's modern day
lynching of a black man by peel regional police, peel regional police
marine unit, unmarked peel regional police, pipe bands, peel regional
police services fitness standards, peel regional police services
police garage, taser taser taser, The Story of Tina the sex slave,
taser, police taser,Const. Jason Watson #1898, Cst. Jason Watson
#1898, Jason Watson Peel Regional Police Vice Unit, Const. Sean
Gormley #2544, Cst. Sean Gormley #2544, Sean Gormley Peel Regional
Police, Const. Mike Viozzi #1897, Cst. Mike Viozzi #1897, Mike Viozzi
Peel Regional Police Vice Unit, Const. Mark Dapat #1919, Cst. Mark
Dapat #1919, Mark Dapat Peel Regional Police Vice Unit, Det. Randy
Cowan #1195, Randy Cowan Peel Regional Police Vice Unit, Det. Randall,
Cowan Peel Regional Police, Randall Cowan, peel regional police blogs,
peel regional police logo, peel regional police crime stoppers,
Holly's Fight to Stop Violence: Human face to sex slavery in the GTA,
mississauga and peel regional police news, peel regional police
special investigations unit, Grenville & William Davis Courthouse,
7750 hurontario street, brampton ontario, superior court of justice,
caribana 2009, brampton real estate,Jacques Leonard-St. Vil, Project
AVERT, things to do in brampton, brampton weather, brampton hotels,
brampton, motels, brampton tourism,Jordan Isaiah Cromwell, 21, police
breaking the law, police abuse, peel region - mississauga brampton
caledon, brampton fine dining, Hugh Ford, flower town, brampton news,
Tina: Slave to a pimp, where to go in brampton, Tamara Cherry Toronto
Sun Media Reporter, jobs in brampton, brampton library, brampton
swimming, brampton summer sports, visiting brampton, welcome to
brampton, brampton dating, brampton singles, Brampton Ontario, Jamaica
day, jamaica day 2009, brampton district school board, hollywood
north, peel shelters, homeless in peel, brampton housing project,
brampton housing, Brampton Canada day celebrations, brampton parades,
brampton santa clause parade, brampton photo galleries, peel vice
squad, DFP, Digital Fortress, Digital Fortress Chat Portal, brampton's
finest, peel's finest, brampton flea market, brampton funeral homes,
brampton night clubs, brampton strip clubs, Employment, Contact Us,
Uniform Recruiting, Civilian Employment, brampton criminal Records
Search, Records, Crime Files, News results for peel police, peel
police & their Hall of Shame, the democratic reporter, malton
neighbourhood services, black history month, Peel Police & Their Hall
of Shame, Peel Regional Police Public Complaints, Ontario Human Rights
Commission, corrupt police force, tamara cherry, brampton car rental,
brampton funeral home, brampton flea market, slang terms for police
officers, slang terms for cops, brampton car wash, restaurants in
brampton, fine dining in brampton, free classifieds, home invasion,
home inspections, t.oo, t-dot, the dot, prostitutes in brampton,
brampton prostitutes, brampton donut shops, coffee houses in brampton,
coffee houses in peel,Canada lynching, human rights watch,
international film festival

==============================================================================
TOPIC: how to recognize whether code is C or C++?
http://groups.google.com/group/comp.lang.c++/t/8ef69ade6ab46b45?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jun 3 2009 10:40 am
From: Bart van Ingen Schenau


Noah Roberts wrote:

> I can't help but notice that everyone's argument for using struct to
> signal some meaning it doesn't have always ends up coming back to some
> existing practice or documentation that already assumes the
> conclusion.
> A circular argument through authority so to speak.
>
> I'm not arguing that one ignores guidelines that someone decided to
> put
> in a project. I'm arguing that when you're in charge of making
> guidelines you don't put such a meaningless and easily broken one in
> your guidelines. I'm arguing that it makes no sense, *inherently*, to
> do so.

I can't help but notice that you advocate a 'free for all' coding
attitude where only the compiler is the final arbiter on what is
acceptable and what not.

The entire reason for having coding guidelines at all is to document
those conventions that can NOT be checked by the compiler and are hence
easily broken.

We started this exchange with this program (reformatted):

#include<stdio.h>
int main(int, const char**v)
{
goto L8;
L2: return 99;
L3: if((*v)[0])
goto L6;
else
goto L2;
L4: v[0]++;
L5: goto L3;
L6: putchar(**v);
goto L4;
L8: v[0]="hello, world\n";
goto L5;
}

I would agree with you that this code is hopelessly unmaintainable, but
maintainability is too subjective a term to be able to use it in rooting
out bad code.
To keep bad code out of your project, you need some restrictions and
conventions on how the C++ language can be used within the project that
go beyond what a compiler is required to diagnose.

Your argument against assigning a restricted meaning to struct is that
the compiler can't help you in enforcing that restricted meaning.
My counter-argument is that with such an attitude, you also can not in a
meaningful manner impose a naming convention or restrict the use of
dangerous/unmaintainable constructs (like goto).

This does not mean that you *must* follow all these guidelines, just
that if you want to follow one of them, your argument why struct can't
have a restricted meaning falls down. An argument like "I don't like
such a rule in my project" would still be valid not to implement it in
your guidelines.
And don't come with the local vs remote effect argument, because that
would only prove you have not been paying attention.

Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://c-faq.com/
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/

== 2 of 2 ==
Date: Wed, Jun 3 2009 2:02 pm
From: Noah Roberts


Bart van Ingen Schenau wrote:

> Your argument against assigning a restricted meaning to struct is that
> the compiler can't help you in enforcing that restricted meaning.

Again, you misrepresent my argument. It seems on purpose since I quite
explained it earlier.

It's too hard to track what everyone whats to use this struct keyword
for. It seems that among the various proponents for using struct only
for some something or other, but never classes, can't agree on what that
something or other is. This speaks volumes toward its utility in
expressing any one of these things.

The point of my argument is that 'struct' and 'class' mean exactly the
same thing in the C++ language. There is no inherent reason to prefer
'class' over 'struct'. The various purposes proposed range from
ill-defined to overly strict and difficult to enforce. Since you'll get
no help from the compiler, and the things you want to enforce need to be
tracked by the individual in ways that have nothing to do with 'struct'
vs. 'class', the use of these keywords to hold extra meaning seems to be
quite ill-advised.

You're taking this statement and inverting it incorrectly. Just because
THIS non-compiler enforced semantic issue is ill-advised does not mean
that ALL are. I gave quite concrete reasons why I think attempting to
force people to use 'struct' only for "non-class" objects is
questionable at best, and why those same arguments can't be applied to
code formatting and standards in general.

You say you want C compatibility, but this does not preclude not using
struct for classes.

You say you want to ensure this or that, but this does not preclude not
using struct for classes.

All the various purported reasons given so far seem to me to be better
expressed in comments. "This object needs to be C compatible," for
instance (which might also be expressed with extern "C"). The 'struct'
keyword does not seem sufficient to express what is desired in any of
these cases, nobody agrees what it should be expressing, and the use of
'struct' in modern C++ texts for objects that could certainly be viewed
as class-like in nature is quickly becoming common.

The OP stated, as point of fact, that you should never use 'struct' for
class objects and I stand utterly unconvinced so far that this is a
logical assumption. Frankly, the best argument for using 'class'
instead of struct is to force the very verbosity that the OP was
complaining about originally. I haven't seen a need to issue such a
constraint in my team.

I'm not saying that coding standards are useless (we have many), just
this one. No amount of misrepresenting of that argument will change it.

==============================================================================
TOPIC: Serialization template classes
http://groups.google.com/group/comp.lang.c++/t/37cb4bb4cfdff3ad?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jun 3 2009 10:52 am
From: Bart van Ingen Schenau


Johannes Bauer wrote:

> Hi Ron,
>
> Ron AF Greve schrieb:
>
>> I usually try putting typename in front of declararions with the g++
>> compiler
>>
>> typename std::map<T1, T2>::const_iterator i;
>>
>> Not sure if that is the problem but you could give it a try.
>
> Indeed! Now what the heck did just happen there? Why do I need the
> "typename" keyword - is this a compiler problem or am I
> misunderstanding part of the language?

This is a part of the language.
The name "std::map<T1, T2>::const_iterator" is a so-called dependent
name, because the exact meaning of std::map<T1, T2>::const_iterator
depends on the values of the template parameters T1 and T2.
The problem with dependent names is that the compiler can't decide if it
is supposed to refer to a type or to a variable, and the default choice
then become to interpret the name as referring to a variable.
If the default choice is wrong, you must instruct the compiler to assume
it will be a type name with the typename keyword.

>
> Kind regards,
> Johannes
>

Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://c-faq.com/
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/

== 2 of 2 ==
Date: Wed, Jun 3 2009 11:08 am
From: coal@mailvault.com


On Jun 3, 10:26 am, Johannes Bauer <dfnsonfsdu...@gmx.de> wrote:
> Hello group,
>
> I've written a serialization class which serializes arbitrary objects to
> by "Block" representation. A template exists for POD objects, as do some
> specializations, like:
>
> template<> class Serializer<std::string> {
>   public:
>     static void Serialize(const std::string &Input, Block &Output) {
>       Serializer<unsigned int>::Serialize(Input.size(), Output);
>       Output.Increment(Input.size());
>       std::copy(Input.begin(), Input.end(), Output.endptr() - Input.size());
>     }
> [...]
>
> Those all work fine. Now I wanted to introduce a template that could
> reduce a map which contains arbitrary types:
>
> template<typename T1, typename T2> class Serializer< std::map<T1, T2> > {
>   public:
>     static void Serialize(const std::map<T1, T2> &Input, Block &Output) {
>       Serializer<unsigned int>::Serialize(Input.size(), Output);
>       std::map<T1, T2>::const_iterator i;
>       for (i = Input.begin(); i != Input.end(); i++) {
>         Serializer<T1>::Serialize(i->first, Output);
>         Serializer<T2>::Serialize(i->second, Output);
>       }
>     }
>
> The compiler however now complains with a *very* weird error:
>
> Common/Serializer.hpp: In static member function 'static void
> Serializer<std::map<T1, T2, std::less<_Key>,
> std::allocator<std::pair<const _Key, _Tp> > > >::Serialize(const
> std::map<T1, T2, std::less<_Key>, std::allocator<std::pair<const _Key,
> _Tp> > >&, Block&)':
> Common/Serializer.hpp:61: error: expected `;' before 'i'
> Common/Serializer.hpp:62: error: 'i' was not declared in this scope
>
> What am I doing wrong?
>

Wikipedia has a page on serialization that has a C++
section -- http://en.wikipedia.org/wiki/Serialization.

There's a comparison between Boost Serialization and
the C++ Middleware Writer here --
http://webEbenezer.net/comparison.html.

The C++ Middleware Writer, on line since 2002,
was the first on line, C++ code generator.


Brian Wood
Ebenezer Enterprises
www.webEbenezer.net

I recommend the articles on social topics by professor
Jonathan Katz -- http://wuphys.wustl.edu/~katz.

==============================================================================
TOPIC: √√√【www.guomeitrade.com】Discount Brand Shoes Jordan,Bape,Dior,D&G,etc.
-Paypal Payment-Factory Promotion
http://groups.google.com/group/comp.lang.c++/t/aaff6eddac4dd32d?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 11:09 am
From: tessa124@126.com


√√√【www.guomeitrade.com】Discount Brand Shoes Jordan,Bape,Dior,D&G,etc.-
Paypal Payment

Factory Promotion

Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes

Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guomeitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guomeitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guomeitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guomeitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guomeitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guomeitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guomeitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guomeitrade.com )
TODS shoes
AF shoes


==============================================================================
TOPIC: Template wrapper link query
http://groups.google.com/group/comp.lang.c++/t/2ee3d82527c1e4f1?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 11:50 am
From: Paavo Helde


PGK <graham.keir@gmail.com> kirjutas:

> I'd like to wrap a series of "C" library functions using instantiated
> templates. I'd also like to have this interface in a header file, but
> not require the user to link to the "C" library.

Microsoft Visual C++ has #pragma comment(linker, ...) which can be used for
linking in the needed libraries whenever the library headers are included.
This seems like a feature you are looking for. However, this is an
implementation-specific extension and thus off-topic here. I don't know if
other compilers provide something similar.

Paavo

==============================================================================
TOPIC: Questions about the behavior for argv(0)
http://groups.google.com/group/comp.lang.c++/t/b389eb025fc6bf1f?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 12:12 pm
From: gordon@hammy.burditt.org (Gordon Burditt)


>I'm more interested in knowning why the behavior of argv[0] is different
>(on an XP machine) when a program is invoked within a command shell vs
>windows explorer.

Because Microsoft did it that way.

>I'm also interested to know why the behavior of argv[0] is NOT different
>on a win-98 box under the same two conditions.

Because Microsoft did it that way.

The obvious followup question: But WHY did Microsoft do it that
way? For all values of "it" and any value of "Microsoft" that is
a for-profit corporation, then answer is: MONEY!

In comp.lang.c, the answer to most any question using the word "why"
and not using the word "troll" is "because the C standard says so"
or "because the C standard *DOESN'T* say so".


==============================================================================
TOPIC: The best way to retrieve a returned value... by const reference?
http://groups.google.com/group/comp.lang.c++/t/0f3ad790abe791fc?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jun 3 2009 1:54 pm
From: "Niels Dekker - no reply address"


>> Thanks, James. But personally I think it's okay for a "leaf"
>> of an inheritance hierarchy (a type that should be considered
>> "sealed") to be CopyConstructible.

James Kanze wrote:
> Most of the time, it probably doesn't hurt, if the type doesn't
> have identity. But usually, there's no point in it, since
> client code doesn't normally use the leaf classes anyway.

As a client, I quite often use leaf classes from other libraries (notably
Qt). I'm surprised that doing so might not be normal.


> (And since copy was blocked in the base class, it would
> require extra effort to unblock it.)

Assuming that you put extra effort to block copying in the base class, of
course... An abstract base class isn't CopyConstructible, but a derived
class may still get a compiler-generated copy-constructor "for free".


>>> There are certainly exceptions, and not a few.)
>
>> Like std::exception? ;-)
>
> Yes, and you can see the problems that can sometimes cause. You
> can't pass an exception into a function for that function to
> throw, because the thrown type is the static type. The reason,
> of course, why the static type is thrown, rather than the
> dynamic type, is that the compiler must allocate memory and
> generate a call to the copy constructor; if exceptions weren't
> to be copied, then throw could easily use the dynamic type.

Okay. But still I'm not particularly happy about std::exception being
CopyConstructible. Because it's mostly used as a base class anyway. (I would
have liked it to be an abstract base class.) And because the effect of
copying an std::exception is rather unclear. Fortunately it looks like this
effect will be clarified, by the resolution of an LWG issue, submitted by
Martin Sebor: "result of what() implementation-defined"
http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#973


Kind regards, Niels


== 2 of 2 ==
Date: Wed, Jun 3 2009 2:00 pm
From: "Niels Dekker - no reply address"


> an LWG issue, submitted by Martin Sebor: "result of what()
> implementation-defined"
> http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#973

Oops, I mean:
http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#471


-- Niels

==============================================================================
TOPIC: C++ stuff I can't talk about here
http://groups.google.com/group/comp.lang.c++/t/5017e5dbab2a63a3?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jun 3 2009 3:48 pm
From: "Tony"

"Phlip" <phlip2005@gmail.com> wrote in message
news:3cQUl.31319$YU2.21114@nlpi066.nbdc.sbc.com...
>>> This NG is
>>> named c.l.c++.usage.
>>
>> An obvious wireless keyboard hiccup: should have included the word 'not'.
>> (That's one reason why wireless sucks: it doesn't work!). My wireless
>> keyboard makes me seem stupid sometimes.
>>
>> Tony
>
> Wireless keyboards prevent proofreading? (-:

That's not the point.


== 2 of 2 ==
Date: Wed, Jun 3 2009 3:46 pm
From: "Tony"

"Christof Donat" <cd@okunah.de> wrote in message
news:h00bp1$dqs$1@svr7.m-online.net...
> Hi,
>
>> My wireless keyboard makes me seem stupid sometimes.
>
> Get a new Keyboard - though I wouldn't expect that to improve things a
> lot.
>
> Christof

I wrote that just to see who would bite. You lose sucker!

==============================================================================
TOPIC: Is this String class properly implemented?
http://groups.google.com/group/comp.lang.c++/t/6d95b63c2d32064a?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 4:05 pm
From: "Tony"

"Richard Herring" <junk@[127.0.0.1]> wrote in message
news:k3KhA$AIf5IKFwlk@baesystems.com...
> In message <ak2Ul.19671$D32.7129@flpi146.ffdc.sbc.com>, Tony <tony@my.net>
> writes
>>Richard Herring wrote:
>>> In message <g86Sl.11077$im1.8165@nlpi061.nbdc.sbc.com>, Tony
>>> <tony@my.net> writes
>>>> Richard Herring wrote:
>>>>> In message <JFqRl.29705$yr3.16660@nlpi068.nbdc.sbc.com>, Tony
>>>>> <tony@my.net> writes
>>>>>>
>>>>>> "Richard Herring" <junk@[127.0.0.1]> wrote in message
>>>>>> news:TI1c$oFG9nEKFwhj@baesystems.com...
>>>>>>> In message <lbrQl.10692$im1.4328@nlpi061.nbdc.sbc.com>, Tony
>>>>>>> <tony@my.net> writes
>>>>>
>>>>> [...]
>>>>>
>>>>>>> I think you need to check the definition of "strawman".
>>>>>>
>>>>>> Probably, but you know what I meant.
>>>>>>
>>>>>>>
>>>>>>>> that conveniently avoids any context; The English alphabet
>>>>>>>> has exactly 26 letters.
>>>>>>>
>>>>>>> (And the Welsh alphabet has 28, despite lacking J, K, Q, V, X, Z).
>>>>>>> So what? 26 letters alone are not sufficient for writing English.
>>>>>>
>>>>>> Who's talking about literary writings?! I'm talking about
>>>>>> programming and engineering.
>>>>>
>>>>> I'm talking about software-engineering programs that support what my
>>>>> customers want -- which includes not having the stuff that they type
>>>>> in garbled because it contains characters that aren't in ASCII.
>>>>
>>>> Politics.
>>>
>>> So one should alienate the customer and go out of business, because
>>> giving them what they contracted for is "politics"? Maybe in your
>>> world.
>>
>>It was politics because you choose to promote your narrow
>
> *My* view is "narrow"? [*] ROFL.
>
>>point of view
>>instead of recognizing alternative needs. You seem to be "arguing for
>>argument's sake".
>
> P.K.B.
>
>> If my requirements are satisfied with ASCII, then all your
>>verbage is bogus.
>
> And the requirements of the rest of the world don't matter. I see.

What is your point in being extremist? ASCII (some variant thereof, US-ASCII
most noteworthy) is the workhorse. Unicode is a special-purpose
specification. Unicode does not subsume ASCII in practical implementation
("practicality of programmers" ponderance omitted).

>
>
> [*] just to preserve a veneer of topicality:
>
> 7-bit ASCII is narrow. UTF-8 is just about narrow. All other
> manifestations of Unicode are surely wide, possibly even too wide for
> wchar_t.
>
> --
> Richard Herring

==============================================================================
TOPIC: David or Kien
http://groups.google.com/group/comp.lang.c++/t/7f227b65a6112ff4?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 6:16 pm
From: ww596241@gmail.com


Is it true that this black puppy's wife is Chihaha ?
He looks timid at first but worst if you come near to watch

Anyone ??

==============================================================================
TOPIC: cheap (WWW.EdHardy4Sale.COM) hip hop Christian Audigier wholesale
http://groups.google.com/group/comp.lang.c++/t/5b0c5217a172a43b?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 7:12 pm
From: edhardy4sale


Cheap hip hop coogi clothing wholesale WWW.EdHardy4Sale.COM
cheap urban clothing wholesale WWW.EdHardy4Sale.COM
cheap urban clothes wholesale WWW.EdHardy4Sale.COM
cheap ed hardy clothing wholesale WWW.EdHardy4Sale.COM
cheap urban ed hardy clothing wholesale WWW.EdHardy4Sale.COM
cheap hip hop Christian Audigier wholesale WWW.EdHardy4Sale.COM
cheap hip hop Affliction clothing wholesale WWW.EdHardy4Sale.COM
cheap hip hop smet clothing wholesale WWW.EdHardy4Sale.COM
cheap hip hop Abercrombie Fitch wholesale WWW.EdHardy4Sale.COM
Urban ed hardy clothing wholesale WWW.EdHardy4Sale.COM
urban gucci clothing wholesale WWW.EdHardy4Sale.COM
urban burberry clothing wholesale WWW.EdHardy4Sale.COM
urban lacoste clothing wholesale WWW.EdHardy4Sale.COM
urban polo clothing wholesale WWW.EdHardy4Sale.COM
urban armani clothing wholesale WWW.EdHardy4Sale.COM
urban LRG clothing wholesale WWW.EdHardy4Sale.COM
urban evisu clothing wholesale WWW.EdHardy4Sale.COM

==============================================================================
TOPIC: C# book by Hoang Lam publised by Orreily
http://groups.google.com/group/comp.lang.c++/t/4fe889c627850e8e?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 7:15 pm
From: "ww596241@gmail.com"


You have his book ? it is for free online!

He is living in TanPhu dist, Ho Chi Minh City, Vietnam.

He is working as a male whore in http://www.codeguru.com/forum

By male whore i mean the accounts are switching from person to person.
There is nothing like one account one person.
This is a strategy used to attract site visitors so that those sitting
in the background will have a chance to access computer resources,
getting where the visitors have gone to online and use the information
to cyber them (including SEX cyber!). They have multiple accounts in
messengers/facebooks and similar online webtools

By Sex Cyber I mean they want to chat, to talk and discuss to get
ideas for books articles writing and above ALL, they want to get
themselves excited to later have sex with their wives more
passionately!

No matter who you are (man/woman/gay/lesbian). They claim they still
get excited for all !

==============================================================================
TOPIC: Erase map item via a const_iterator
http://groups.google.com/group/comp.lang.c++/t/9e8b3cac7f8c6976?hl=en
==============================================================================

== 1 of 2 ==
Date: Wed, Jun 3 2009 7:33 pm
From: "Alf P. Steinbach"


Given a map<K,V>::const_iterator, how to erase the referred to element in
constant time?

I think the apparent lack of a way to do it is a basic design error with map and
possibly other containers, that they've misunderstood logical constness.

The issue popped up some time ago when I was answering a question in
[alt.comp.lang.learn.c-c++],


Cheers & TIA.,

- Alf (if you delete an 'e', and type an 'e' again, is it the same 'e', eh?)

--
Due to hosting requirements I need visits to <url: http://alfps.izfree.com/>.
No ads, and there is some C++ stuff! :-) Just going there is good. Linking
to it is even better! Thanks in advance!


== 2 of 2 ==
Date: Wed, Jun 3 2009 11:46 pm
From: none


Alf P. Steinbach wrote:

> - Alf (if you delete an 'e', and type an 'e' again, is it the same
> 'e', eh?)

No joke, I have had that exact same thought. It is probably a sign that I
am completely insane, but I have even followed the train of thought
further...

If I select/cut/paste an 'e', is it the same 'e'?

If I delete an 'e' and then "undo" the deletion, is it more the same 'e'
than it would have been if I had typed a new 'e'?

I understand every step that happens from the instant when the metal
contacts under my 'e' key touch each other to the dispatch of the
WM_KEYDOWN message to the application. Yet, somehow, I can't convince
myself that when you delete that 'e' and type a new one, it is the same
'e'.

Related question: If I gave you a rock composed of 10^20 atoms, along with
a list of every atom's exact <x,y,z> position in space, then destroyed that
rock completely, and then reassembled it to so that every atom's new
<x,y,z> was the same as it was originally, would it be the same rock?

==============================================================================
TOPIC: Christian audigier t shirts - Christian Audigier Women Shirts
http://groups.google.com/group/comp.lang.c++/t/db71759b4cc75a04?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 8:48 pm
From: tanvon19@gmail.com


Where can go to find Christian audigier t shirts - Discount Christian
Audigier Women Shirts ?
Please see them:
http://www.luxury-fashion.org/static/Apparels/Christian-Audigier-Women-Shirts-61.html
http://www.luxury-fashion.org/static/Apparels/Christian-Audigier-Women-Shirts-660.html

And find more new fashionable cloth,shoes and apparels please view :
www.luxury-fashion.org

Please check our web and feel free contact us.
You can find what do you want here!

==============================================================================
TOPIC: Why am I so stupid?
http://groups.google.com/group/comp.lang.c++/t/9c35ffbaed42a937?hl=en
==============================================================================

== 1 of 1 ==
Date: Wed, Jun 3 2009 11:27 pm
From: none


Every little thing I try to do using STL turns into a five mile crawl
through raw sewage.

I want to use the STL to lex/parse some text. This must have been done
at least 5.0e+75 times before, but I can't find the solution in the FAQ
or in any examples.

This is my utterly failed attempt:


std::string s = "5.0 This is a string";
std::istringstream i(s);
std::cout << "Before: \"" << s << "\"" << std::endl;

float x;
i >> x;

std::cout << "Extracted a float: " << x << std::endl;
std::cout << "After: \"" << s << "\"" << std::endl;


And this is the output produced:


Before: "5.0 This is a string"
Extracted a float: 5
After: "5.0 This is a string"


All that I want in this world is for that output to be, instead, this:


Before: "5.0 This is a string"
Extracted a float: 5
After: " This is a string"


Then I can just continue parsing the remainder of the string. I have
tried the following, and all have failed:

1) Making the assignment "s = i.str();" after the line "i >> x;" in
hopes that "i.str()" would return only the un-extracted portion of the
string. It doesn't. It returns the entire string.
2) Calling "i.sync();" I don't know why I thought this would help. A
shot in the dark.
3) Calling "i.ignore();" a few times. No effect.
4) Changing the last line to:

std::cout << "After: \"" << i << "\"" << std::endl;

(displaying the value of "i" instead of "s". It displays a hex number,
probably a pointer I guess.

5) Changing the last line to:

std::cout << "After: \"" << i.str() << "\"" << std::endl;

I knew before I tried that it wouldn't help, but was desperate.


How do you get the >> operator to actually remove the characters from a
string?


Help me, Obi Wan. You're my only hope.


P.S.: Please, oh please, don't say Boost. I don't want to add 75000
files to my project just to remove three characters from a string.


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

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: