std::maxのbindの仕方
手間取ったのでメモ。
普通に書いた方が早いし見やすいのだがこうなったら無理してでも使う。
手段が目的になる典型的なw
namespace lmd=boost::lambda; lmd::bind( static_cast<const int&(*)(const int&, const int&)>(&std::max), 1, lmd::_1 );
手間取ったのでメモ。
普通に書いた方が早いし見やすいのだがこうなったら無理してでも使う。
手段が目的になる典型的なw
namespace lmd=boost::lambda; lmd::bind( static_cast<const int&(*)(const int&, const int&)>(&std::max), 1, lmd::_1 );