>>492
template<class T>cast(typename identity<T>::type v){ return v; }
とか
typedef boost::mpl::eval_if<is_const<T>, identity<const int>, identity<int> > iint;
とか