2008-08-01から1ヶ月間の記事一覧

自分用覚え書き:特殊化テンプレート関数の記述方法(その2)

C++ Templates: The Complete Guideが来たので、ちょっと目を通してみた。 そしたら、前に思ったテンプレート引数が必要なケースがいきなり例題で出てきた。//--------------------------------------------------------------------------- #include <iostream> #prag</iostream>…

C++Builder2009 & Delphi2009発表

たけぇ。バージョンアップ価格が税込み\48,300かよ・・・。('A`) C++BuilderとDelphiは単独でバージョンアップするより、セットでバージョンアップした方が値頃感があると。 てか、セットの値段は変わっていないな・・・。 バージョンアップ予算は前回同様の…

Boost 1.36.0リリース

とりあえず、何が追加されたのかちょっと調べてみた。 Accumulator:累計計算ライブラリ 一番最初のサンプルは平均値と"moment"を求めているけど、"moment"は、これのことかな? Σ(xin)の平均っぽいけど、統計の分散を求める奴だっけ? Exception:例外処理…

自分用覚え書き:特殊化テンプレート関数の記述方法

#include <iostream> #include <string> template<typename T> int compfunc(T a, T b) { std::cout << "compfunc(T a, T b)" << std::endl; return a - b; } template<> int compfunc<std::string>(const std::string& a, const std::string& b) { std::cout << "compfunc(const std::string& a, const </std::string></typename></string></iostream>…