I was studying smart pointers and based on this blog: link
#include <iostream>
template <class T> class SmartPointer
{
T *ptr; public:
SmartPointer(T *p):ptr(p) {}
~SmartPointer() {delete ptr;}...
I'm reading an article in msdn about smart pointers. In the article there is this example:
class LargeObject
{
public:
void DoSomething(){}
};
void ProcessLargeObject(const LargeObject& lo){}
void SmartPointerDemo()
{
// Creat...