【发布时间】:2020-06-01 12:28:18
【问题描述】:
当我添加头文件时
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
它给出了几个错误
error C2988: unrecognizable template declaration/definition
error C2143: syntax error: missing ';' before '<'
error C2913: explicit specialization; 'boost::type_of::id2type_impl' is not a specialization of a class template
error C2059: syntax error: '<'
error C2334: unexpected token(s) preceding '{'; skipping apparent function body
指向 typeof_impl.hpp 文件中的第 125 行。
【问题讨论】:
-
您编译的 C++ 版本是什么?
-
@NathanOliver 版本是 c++14 。
-
视觉工作室 2017
-
对于本地文件使用“myfile/file.cpp”,但它应该是header ....
-
你使用的是什么版本的 boost?它是否支持 Visual Studio 2017?我问是因为我不时看到这里有人使用 5 年前的 boost 版本。
标签: c++ boost visual-studio-2017 c++14