xtal を試してみた その2
作業ログつづき。
cygwin & gcc でコンパイルできなかったのを解決した。
とりあえずコンパイル通すようにするためのパッチ
これでおk。
Index: xtal_cfun.h =================================================================== --- xtal_cfun.h (revision 123) +++ xtal_cfun.h (working copy) @@ -914,9 +914,9 @@ */ template<class T, class U, class Policy> CFunPtr getter(T U::* v, const Policy&){ - typedef detail::getter<C, T> getter; + typedef detail::getter<U, T> getter; getter data(v); - return xnew<CFun>(&detail::method0<getter, C*, const T&, Policy>::f, &data, sizeof(data), 0); + return xnew<CFun>(&detail::method0<getter, U*, const T&, Policy>::f, &data, sizeof(data), 0); } /** @@ -925,9 +925,9 @@ */ template<class T, class U, class Policy> CFunPtr setter(T U::* v, const Policy&){ - typedef detail::setter<C, T> setter; + typedef detail::setter<U, T> setter; setter data(v); - return xnew<CFun>(&detail::method1<setter, C*, const T&, const T&, Policy>::f, &data, sizeof(data), 1); + return xnew<CFun>(&detail::method1<setter, U*, const T&, const T&, Policy>::f, &data, sizeof(data), 1); }