didn't include <memory> in views.h