2012-02-02から1日間の記事一覧
boost::add_pointer のようなことをやりたいと思い, #include <iostream> #include <tr1/memory> template <typename T> class Pointable { public: typedef std::tr1::shared_ptr<T> ptr_t; }; class Parent : public Pointable<Parent> { public: Parent() { std::cout << "Parent created" << std::end</parent></t></typename></tr1/memory></iostream>…
find-func.el の find-function-C-source 関数で処理が行われている. (defun find-function-C-source (fun-or-var file type) "Find the source location where FUN-OR-VAR is defined in FILE. TYPE should be nil to find a function, or `defvar' to fin…
最初は誰かの受け売りだった「1ヶ月後や1年後の自分が見ても分かるコードを書く」という方針は、そういう事があって、今自分の中に実感を持って染み着いている。初めてその言葉を聞いた時の僕にとっては、「1ヶ月後の自分」「1年後の自分」とは、「昨日も今…