2010-01-08から1日間の記事一覧
boost::call_traits::param_typeは、Tが(constな)引数にとられるとき const参照渡しにすべきか、値渡しにすべきか決定してくれます。 以下のように使う。 #include <boost/call_traits.hpp> template<typename T> class foo { public: typedef typename boost::call_traits<T>::param_type param_</t></typename></boost/call_traits.hpp>…