/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
template<typename T>
class wrapper{
public:
T data;
};
class B{
public:
wrapper<B>* ptr;
};
void OnStart(){
B b;
b.ptr = new wrapper<B>();
printf("%p", b.ptr);
}
int main()
{
OnStart();
return 0;
}