Home › Forums › GAMES在线课程(现代计算机图形学入门)讨论区 › 作业3 rasterizer output.png normal › Reply To: 作业3 rasterizer output.png normal
Participant
H:\programing\cpp_file\ustcCG\games101\week5\rasterizer.hpp:107:14: error: ‘optional’ in namespace ‘std’ does not name a template type
std::optional<Texture> texture;
^~~~~~~~
H:\programing\cpp_file\ustcCG\games101\week5\rasterizer.hpp:107:9: note: ‘std::optional’ is only available from C++17 onwards
std::optional<Texture> texture;
^~~
可是cmakelists里面,.vscode的各个文件里面都是c17。