2010-03-26から1日間の記事一覧

boost::lambdaのbindはスマートポインタのコンテナで使えない

C++

【Bind】【Lambda】 Processing containers of pointers らしい。 mem_fn的なことはしてくれないのか、と思ったらポインタはできるのね。 #include <vector> #include <boost/shared_ptr.hpp> #include <boost/lambda/bind.hpp> #include <algorithm> struct hoge { void f() {} }; int main() { using namespace boost::lambd</algorithm></boost/lambda/bind.hpp></boost/shared_ptr.hpp></vector>…