2012-01-07から1日間の記事一覧
tcmalloc を 64 bit 環境でビルドしようとする場合,configure 時に --enable-frame-pointers というオプションが必要となることがある.
Sybase Event Stream Processor マニュアル より引用. Operation Codes (opcodes) associate insert, update, and delete events with a window. They simplify development and improve performance by applying these events automatically.In many Event…
[:title=CRTP の noncopyable の例]に次のようなコード例があった. template <class T> class NonCopyable { protected: NonCopyable() {} ~NonCopyable() {} /// protected な非仮想デストラクタ private: NonCopyable(const NonCopyable&); T& operator=(const T&)</class>…
毎回やりかたを忘れるので,gem のアップデート方法をメモる. rake version:bump:minor # version:bump:major, version:bump:patch なども rake gemspec # gemspec ファイルの再生成 rake build # .gem ファイルの作成 git commit *.gemspec # .gemspec フ…
cc-mode で (c-set-style "stroustrup") としていると,インデントが次のようになる. Foo::ptr_t foo = Foo::ptr_t( new Foo( x, y, z ) ); 閉じ括弧の位置が気に食わなかったので,以下の設定を行なった. (aput 'c-offsets-alist 'arglist-close 0) 次の…