OK repeat after me ...
-
You probably know about this already, but I hope somebody finds this of some use: The Rule of Three[^] :)
Cheers, Vikram.
"Life isn't fair, and the world is full of unscrupulous characters. There are things worth fighting for, killing for and dying for, but it's a really small list. Chalk it up to experience, let it go, and move on to the next positive experience in your life." - Christopher Duncan.
-
... i will never ever write a base class without a virtual destructor :mad:
I don't believe in failure. It is not failure if you enjoyed the process.
I hate tracking down things like this. Not a good way to spend the day! This (among many others) is one of the reasons we use PCLint[^] to help check our code. It's awsome. The output by itself is not that friendly, but there are a number of tools that help present and filter the information for you in a much more useful manner.We use our own in house one. So much time can be wasted on small problems like these ones, so anything that helps us identify them, that has gotta be good. - Phil
-
I hate tracking down things like this. Not a good way to spend the day! This (among many others) is one of the reasons we use PCLint[^] to help check our code. It's awsome. The output by itself is not that friendly, but there are a number of tools that help present and filter the information for you in a much more useful manner.We use our own in house one. So much time can be wasted on small problems like these ones, so anything that helps us identify them, that has gotta be good. - Phil
-
... i will never ever write a base class without a virtual destructor :mad:
I don't believe in failure. It is not failure if you enjoyed the process.
...Effective C++[^]. ;)
Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
hmm thanks i will take a look at it, Anna here works on visual lint i think.
Steady As She Goes!
I do indeed. :) If there's anything you need to know, feel free to ask. Our own stuff aside, we're developing quite an insight into how to tune PC-Lint to make the output useful...
Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
...Effective C++[^]. ;)
Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
In C# compiler add it for you, doesn't it..? just a good practise in the manage world
L.W.C. Nirosh. Colombo, Sri Lanka.
In C#, the thing that has a destructor syntax is a finalizer. It is recommended to avoid manually adding one. But if you want to use the Dispose pattern you have to add one. Still whatever you do, you can't know when that memory will be released... (Which might be never, if you forget to let go of that reference)
-
C++ is a sharp knife, so a little scratch on your finger might happen. Is C# as sharp as C++?
-
'shame we can't use it. ;P ;P ;P
Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
C++ is a sharp knife, so a little scratch on your finger might happen. Is C# as sharp as C++?
Not until they add
const
. :doh:Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"