2007-09-13から1日間の記事一覧

コンパイル時アサート

C++

namespace shand { template <bool> struct static_assertion_faire; template <> struct static_assertion_faire<true> { enum { value = 1 }; }; #define SHAND_STATIC_ASSERT(Expression) shand::static_assertion_faire<Expression>::value } // namespace shand #include <shand/static_assert.hpp> int m</shand/static_assert.hpp></expression></true></bool>…

秀丸 v7.0 単語補完

単語補完機能はイイですね〜標準C++とBoost全般のキーワード/クラス名/関数名を一通り登録したのでめっちゃラクです