2009-10-14から1日間の記事一覧

BOOST_AUTOで参照

C++

BoostML - Multi Index with BOOST_AUTO question #include <iostream> #include <boost/typeof/typeof.hpp> int main() { int a = 10; BOOST_AUTO(&b, a); // int &b = a; b = 11; std::cout << a << std::endl; // 11 }</boost/typeof/typeof.hpp></iostream>

来週はBoost 1.41.0 Beta

C++

だそうです。 gmane.comp.lib.boost.devel - 【1.41.0】 Beta planned for next weekgmane.comp.lib.boost.devel - 【1.41】 Release Notes 新規ライブラリ: ・Property Tree 更新ライブラリ: ・Wave

C++でLINQ風のクエリライブラリ

C++

BoostML - C# LINQ is cool. What about boost.qlang? vector<int> numbers = {1, 2, 3, 4, 8, 5, 9 , 24, 19, 15, 12 } auto query = from(numbers).where([](int i) { return i < 15 && i > 10; }).select(fields::full_object); 個人的にはOvenでいいです。</int>

GCC 4.4.1 + Boost 1.40だとenable_ifが動かない?

C++

BoostML - problem with enable_if_c and gcc4 4.4.1の環境がないので調べてません。