Re: Author of Visual C++ 2005 STL ???

"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in
message news:fmn5t41cdbj2110c8tm3c2kfdf8u72rbp1@xxxxxxxxxx
Why do you think it represents a bug? See my other post:
where is it called *from*?

The same issue does not exist in MSVC++ 2008, thus they
fixed the bug. I posted some sample code to test for the

On Tue, 31 Mar 2009 20:56:40 -0500, "Peter Olcott"
<NoSpam@xxxxxxxxxxxxx> wrote:

I wrote a std::vector that did not have this bug. (Top
posting because quoting does not work)

"Ajay" <ajaykalra@xxxxxxxxx> wrote in message
On Mar 31, 11:19 am, "Giovanni Dicanio"
<giovanniDOTdica...@xxxxxxxxxxxxxxxxx> wrote:
"PeteOlcott" <PeteOlc...@xxxxxxxxx> ha scritto nel

There is an issue with std::vector::push_back()
the object's
copy constructor twice. I want to see if this can be

I don't have VS2005 on this machine (I have VS2008), but
I'm curious...
std::vector::push_back is a very common method, and it
would seem strange to
me that such a common method have a similar bug.

I seriously doubt that this bug exists. IIRC, MSFT
essentially put STL
in VS from one of the very reputable vendors. This is most
likely OP's
misunderstanding/incorrect usage.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
MVP Tips:


Relevant Pages

  • Re: Interview Questions
    ... Hand them a program with a bug in it and watch how they look for it. ... What is a pure virtual function, and why would you use it? ... What is the difference between a pointer and a reference? ...
  • Re: Halt and Catch Fire: Dissapointing Series Finale
    ... The simplest explanation for a mystery bug ... in the other 99 first-run machines. ... You make up a convoluted scenario where Joe had to talk his way into ... Joe sabotaged things once, not multiple times. ...
  • Re: With Agile methods, we are measuring the right things
    ... I agree you'll learn best if you spot your mistake and fix it ... If you only focus on "the bug", then the problem I see is this: ... Joe wants to work on features. ...
  • Re: With Agile methods, we are measuring the right things
    ... Diana and Joe wrote yesterday makes some unwarranted assumptions. ... Even a bug caught during development. ... hashCodethat help avoid this kind of issue. ... We fix the problem and check in the fix. ...
  • Re: Check group member ship or a user
    ... > Just out of curiosity, what version of .NET are you using? ... > of 1.0 had a bug where IsInRole was case sensitive. ... > quick Google search should turn up some sample code that shows you how to ... > Joe K. ...