c++

Windows 上で boost をどうリンクするか?

Windows で boost を使っている人達は、boost.filesystem とか boost.iostreams とか使うときスタティックリンクとダイナミックリンクのどっちを使ってるんだろう?

Boost 1.37.0 がリリースされていた

11月3日に Boost 1.37.0 がリリースされていました。今回新しく導入された Boost.Proto ライブラリは、Boost.Lambda のような式テンプレートを駆使したライブラリを作るためのフレームワークであるようです。とてもキモカワいいですね。VC++2008 でフルビル…

たらいまわし関数を C++ のテンプレートで作った

あとで書く. #include <iostream> template<int x, int y, int z> struct tarai; template<int x, int y, int z, bool f> struct tarai_ { enum { value = tarai< tarai<x - 1, y, z>::value, tarai<y - 1, z, x>::value, tarai<z - 1, x, y>::value >::value }; }; template<int x, int y, int z> struct tarai_<x, y, z, true>…</x,></int></z></y></x></int></int></iostream>

Boost.Act

Boost.Act という革命的なライブラリを発見しまし,ゾクゾクとしたのでご紹介します. Boost.Act is a C++ library which introduces STL-style algorithms that may be toggled to run in parallel or serially, and which provides tools for creating and…

型修飾子の記述位置を変えよう

C++ (とか C) 言語の型修飾子には const,volatile (と restrict) がありまして,それぞれ意訳すると「変化しません」,「最適化しないでね」(そして「違うアドレスです」) になります.これらは型そのものとポインタ型の両方を別々に修飾できる (restrict …