2009-04-16から1日間の記事一覧
以下を見て思った http://release.center.jp/2009/04/1402.html 男性に 「好奇心旺盛だね」 「熱しやすく冷めやすいよね」 「人とは少し距離を取るよね」 「嘘を付かない人だね or 正直ものだね」 「一人でいると楽でしょ」 女性に 「好奇心旺盛だね」 「一…
boost::uint_t を使うと出来るみたい #include <boost/integer.hpp> template <class T> struct add_unsigned { typedef typename boost::uint_t<sizeof(T) * 8>::least type; }; /************/ #include <iostream> #include <typeinfo> int main() { std::cout << typeid(unsigned int).name() << std::endl; std::cout <<</typeinfo></iostream></sizeof(t)></class></boost/integer.hpp>…