1、You need to add the memory header at the beginning of your file.
#include <memory>
2、if above solution does not work even after include of header, please ensure that to compiler you are passing argument --std=c++11
1、You need to add the memory header at the beginning of your file.
#include <memory>
2、if above solution does not work even after include of header, please ensure that to compiler you are passing argument --std=c++11