destructor
Side effects when passing objects to function in C++
I have read in C++ : The Complete Reference book the following Even though objects are passed to functions by means of the normal[详细]
2023-04-13 02:47 分类:问答Is object.__del__(self) the most appropriate place to flush a logging class?
I have a custom logging class for my Python script with a flu开发者_JAVA技巧sh() method which print()s the contents of a list.[详细]
2023-04-10 21:34 分类:问答How could C++ compile when there is an undefined function inside source? [closed]
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic[详细]
2023-04-10 06:57 分类:问答Virtual dtor segmentation fault
I\'ve got the开发者_Go百科 following code in C++: #include <iostream> class Number { public:[详细]
2023-04-08 02:31 分类:问答Why is gcc destroying my object instantly despite its scope? (and how do I make it not do that?)
I wrote a small profiling class with an accompanying guard class to use like this: { ProfileGuard pg(\"SampleName\");[详细]
2023-04-06 08:57 分类:问答reading I/O of session variables in constructor and destructor
I have a page that gets called many times in a loop. I have a version which is pulling data from MySQL on page load, pushing modified data back with each submission before the page repeats the process[详细]
2023-04-06 01:43 分类:问答Deleting objects in c++
I have a LinkedList with a Node that have a field: void* _data; Now, I want to delete this data, but i cant know if the data will be a primitive or an object that was dynamically allocated.[详细]
2023-04-05 10:43 分类:问答Exception in derived class constructor
Im having some problems to handle constructor exception in derived classes. When the derived class constructo开发者_开发知识库r throws an error, but the parent class has allocated some objects. Will t[详细]
2023-04-03 09:56 分类:问答A destructor Shall OR shall not be declared with a pointer ? in C++
In C++0x -n3290 Draft : they addedin section :Destructors : 12.4/2nd point last line **A destructor shall not be declared with a ref-qualifier.**[详细]
2023-04-03 08:22 分类:问答Inheritance and destructors - theoretical question - C++
class A { public: virtual void f(){ printf(\"A.f \"); } ~A(){ f(); } }; class B : public A { A a; public: void f(){ printf(\"B.f \"); }[详细]
2023-04-02 23:13 分类:问答