2009-11-17から1日間の記事一覧

BOOST_AUTO_FOREACH?

C++

BoostML - 【foreach】【auto】 Mixing foreach and auto ? GCC 4.4ではコンパイル確認。 #include <iostream> #include <vector> #include <boost/typeof/typeof.hpp> #include <boost/foreach.hpp> #define AUTO_FOREACH(VAR, COL) \ BOOST_FOREACH_PREAMBLE() \ if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID</boost/foreach.hpp></boost/typeof/typeof.hpp></vector></iostream>…