2011-08-12から1日間の記事一覧

Boost.Geometry unique

C++

unique()は、重複した点を削除する関数です。 #include <iostream> #include <boost/geometry.hpp> #include <boost/geometry/geometries/point_xy.hpp> #include <boost/geometry/geometries/linestring.hpp> #include <boost/assign/list_of.hpp> namespace bg = boost::geometry; typedef bg::model::d2::point_xy<double> point; typedef…</double></boost/assign/list_of.hpp></boost/geometry/geometries/linestring.hpp></boost/geometry/geometries/point_xy.hpp></boost/geometry.hpp></iostream>

Boost.MPLで99 Bottles of Beer

C++

99 Bottles of Beer using Boost MPL, feedback invited mpl::stringですね。

Boost.Fusionの最近の動向

C++

ここ最近、Boost.Fusionに関する議論が多いので拾ってきました。 主に自分のメモ用。 std::tupleのアダプト C++0xのstd::tupleはVariadic TemplatesによるものなのでFusion Sequenceへのアダプトが難しいのですが、最近Sandboxとかに実装が出てきてて、現在…