我試圖運行一個alignof運算符的例子。當我用gcc編譯它(g ++ -std = C++ 11 alignof.cpp)時,我得不到任何錯誤。 但是,當我使用ICC(ICPC -std = C++ 11 alignof.cpp)我收到以下錯誤,我不知道爲什麼編譯: cenas.cpp(13): error: type name is not allowed
std::cout <<
我願做這樣的事情: int main()
{
auto f = [/*some variables*/](/*take lambda function*/)
{/*something with lambda function*/};
f([/*other variables*/](/*variables to be decided by f()*/)
{