C++ CLion使用boost显示错误

C++ CLion使用boost显示错误,c++,boost,clion,C++,Boost,Clion,因此,我使用CLion和boost库开始了我的第一个项目,根据boost网页上的“入门”指南,我编写了以下程序: #include <boost/lambda/lambda.hpp> #include <iostream> int main() { using namespace boost::lambda; using namespace std; std::for_each( istream_iterator<int&g

因此,我使用CLion和boost库开始了我的第一个项目,根据boost网页上的“入门”指南,我编写了以下程序:

#include <boost/lambda/lambda.hpp>
#include <iostream>

int main()
{
    using namespace boost::lambda;
    using namespace std;
    std::for_each(
        istream_iterator<int>(std::cin), istream_iterator<int>(), cout <<(_1 * 3) << " " );
}
#包括
#包括
int main()
{
使用名称空间boost::lambda;
使用名称空间std;
std::每个(

istream_iterator(std::cin)、istream_iterator()、cout boost::lambda大量使用模板和元编程,加上一些宏。CLion内置解析器很难理解它们;因此它不“理解”
(\u 1*3)
是一个整数(由于lambda:
int->int
).boost::lambda大量使用模板和元编程以及一些宏。CLion内置解析器很难理解它们;因此它无法“理解”
(\u 1*3)
是一个整数(由于lambda:
int->int
)。