physpolyglot

主にPC関連の自分用メモのうち、役立ちそうなものを共有します。

C++

skeletonを使ったauto-insertのC++用テンプレート

2014/2/28 17:24 UUID ver.4の生成が間違っていたので修正。 Universally unique identifier - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Universally_unique_identifier 2014/4/3 18:02 skeleton-h.elでnamespaceが空のときに動作し…

C++でのクラスの継承とオーバーロードしたメンバ関数の隠蔽

C++

オーバーロードしたメンバ関数のうち、 一部のメンバ関数だけオーバーライドできたら便利だなぁと思った。 #include <cstdio> class Base { public: void hoge(){ printf("Base::hoge()\n"); hoge(0); } virtual void hoge(int){ printf("Base::hoge(int)\n"); } }; </cstdio>…