boostのバージョン
Boostのバージョンを調べる方法をよく忘れるので自分の備忘録にメモメモ・・・
#include <iostream> #include <boost/version.hpp> using namespace std; int main() { cout << ( BOOST_VERSION / 100000 ) << "." << ( BOOST_VERSION / 100 % 1000 ) << "." << BOOST_VERSION % 100; }
ちなみに各サイトでのバージョンの状況は以下のようになりました(2010/12/28現在)
- ideone - C++
- 1.39.0
- http://ideone.com/Te00z
- ideone - C++0x
- codepad
- 1.34.1
- http://codepad.org/XYulKqP6