Issue1 std::shared_ptr问题

cmake build错误

  • Error
    1
    error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
    如图1
  • Solution
    1. 添加#include <memory>;
    2. CMakeLists.txt中添加:set(CMAKE_CXX_STANDARD 11);