destruction
Is there a counterpart to "CreateInstance"?
We have some code that uses MSXML, and does this to create the XML document object: MSXML2::IXMLDOMDocumentPtrdoc_in;[详细]
2023-02-26 19:45 分类:问答Why does the value of session variable remain even after all the code of destruction?
login.aspx if (IsPostBack == false) { //destroy any login information Session[\"password\"] = \"false\"; Session[\"login\"] = \"false\";[详细]
2023-01-24 19:12 分类:问答Exception free tree destruction in C++
I have recently managed to get a stack overflow when destroying a tree by deleting its root \'Node\', while the Node destructor is similar to this:[详细]
2023-01-12 04:34 分类:问答C++ basic pointer question
I have some shared pointer shared_ptr<T> pointer1(new T(1));. Now, in some other part of code I have an explicit copy of pointer2 (guess it would be stored in a std::map or some other container)[详细]
2023-01-06 17:52 分类:问答Question about exact time of destruction of temporaries in C++
is the following code safe (it works in DEBUG) : void takesPointer(const开发者_运维知识库 Type* v);//this function does read from v, it doesn\'t alter v in any way[详细]
2022-12-21 18:22 分类:问答