
8 Nov
2007
8 Nov
'07
2:34 a.m.
shunsuke wrote:
Sergey Shandar wrote:
char c; int i; ... // if(c == static_cast<char>(i)) if(c == cast::static_::value(i)) { ... }
Hi, I too am trying to implement a similar facilities: http://tinyurl.com/ynmf5n `automatic<>::type` can take multiple arguments. BTW, does `polymorphic::ref` work on gcc? I recall I gave up supporting a reference type as target (e.g. `polymorphic::ref`), because gcc-3.4 and 4.1 show a weird compile error. (Though I found a workaround, it was not complete.)
Regards,
References work on gcc-3.4.5 (mingw-special). I have not tried 4.X.X. See the test: http://tools.assembla.com/cbear/browser/trunk/cbear.berlios.de/cast/test.cpp. What's wrong with GCC?