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*?
joe

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


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
news:e8cfb723-eb20-437e-b68c-a2f8bdcb7efb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 31, 11:19 am, "Giovanni Dicanio"
<giovanniDOTdica...@xxxxxxxxxxxxxxxxx> wrote:
"PeteOlcott" <PeteOlc...@xxxxxxxxx> ha scritto nel
messaggionews:1b82dda9-f64e-4cec-8330-63117d664a0f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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

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
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm


.



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? ...
    (microsoft.public.vc.mfc)
  • 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. ...
    (comp.object)
  • 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. ...
    (comp.object)
  • 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. ...
    (microsoft.public.dotnet.languages.vb)
  • 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. ...
    (microsoft.public.dotnet.security)