3
在下面的代碼:升壓C++宏參數計數錯誤
BOOST_FOREACH(std::pair<PID, bool> &itval, completedEs_) {
allCompleted &= it->second;
}
我得到這個錯誤:
error: macro "BOOST_FOREACH" passed 3 arguments, but takes just 2
我只是路過2個參數,這是怎麼回事?
http://stackoverflow.com/questions/716865/c-boost-any-gotchas-with-boost-foreach/716872#716872 – phooji 2011-03-24 04:05:20
和:HTTP: //stackoverflow.com/questions/2104208/is-it-possible-to-use-boostforeach-with-stdmap – GManNickG 2011-03-24 04:28:17