2008-11-30から1日間の記事一覧

Boost C++ Libraryのお勉強その7

Boost.Enable_If 普通に使うとテンプレート関数あらゆる型を取るので、 それを制御するための仕組み。 ぱっと見使い方がわかりずらくて、まずenable_ifは引数に書くけどこれは宣言するだけで関数内では使わず、あくまでテンプレートの実体化の為に処理系が使…

Boost C++ Libraryのお勉強その6

連休中じゃ全然終わらなかった…。 Boost.Date_Time 時間クラス色々。boost_date_timeをリンクする事。 #include <iostream> #include <boost/date_time.hpp> int main(void) { boost::gregorian::date d(2008,boost::gregorian::Nov,24); std::cout << boost::gregorian::to_simple_string(d</boost/date_time.hpp></iostream>…