{"image_url":null,"url":"https://shinh.hatenablog.com/entry/20060531/1149011285","author_name":"shinichiro_h","author_url":"https://blog.hatena.ne.jp/shinichiro_h/","blog_url":"https://shinh.hatenablog.com/","published":"2006-05-31 02:48:05","title":" mem_fun \u7d9a\u304d","categories":["Program","D"],"description":"gdc \u306e ABI \u304c\u9055\u3063\u305f\u306e\u3067\u305d\u306e\u5bfe\u5fdc\u3068\u304b\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002 Linux \u306e DMD-0.159 \u3068 gdc-0.18 \u3001 WINE \u306e DMD-0.159 \u3067\u78ba\u8a8d\u3002 import std.stdio; template mem_fun(T) { T (*mem_fun(T (*f)()))(Object) { return cast(T (*)(Object))f; } } version (GNU) { template mem_fun(T, U) { T (*mem_fun(T (*f)(U)))(Object, U) { return cast(T (*)(Object, U))f; \u2026","blog_title":"\u517c\u96d1\u8a18","height":"190","provider_url":"https://hatena.blog","width":"100%","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20060531%2F1149011285\" title=\" mem_fun \u7d9a\u304d - \u517c\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}