- 643 名前:デフォルトの名無しさん mailto:sage [2007/01/19(金) 06:57:25 ]
- >>641
getは設計が古くなっている。 戻り値指定なしでもできるが長くなるのでこんな感じで template<typename Result, int i> struct get { /**/ typedef Result result_type; /**/ template<typename Tuple> /**/ Result operator()(Tuple& t) const /**/ { return boost::get<i>(t); } }; bind(get<double, 0>(), _1);
|

|