

#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "smart_point.h"

#include <iostream>
#include <list>
using namespace std;

void   sub(SmartPoint<char>&  tmp)
{
	SmartPoint<char>  local_var;
	local_var=tmp;

	 printf("%s\n",local_var.get());

}


void    show(){

	char *  normalP;
	normalP=new  char[10];

	SmartPoint<char>   smartP=normalP;
	
	SmartPoint<char>   smart2P=new char[10];
	
	SmartPoint<char>   smart3P=smartP;
	SmartPoint<char>   smart4P=normalP;

	strcpy(smart3P.get(),"=test=");
	sub(smart3P);

	printf("%s\n",normalP);
}






int main(int argc, char *argv[])
{
	int errcode;
	int i;
	show();
	
	return  (0);
}
