diff -r dc9fdf77007f -r f02396423239 src/work/deba/test.cpp --- a/src/work/deba/test.cpp Wed Mar 09 14:23:36 2005 +0000 +++ b/src/work/deba/test.cpp Fri Mar 11 16:29:03 2005 +0000 @@ -2,7 +2,10 @@ using namespace std; +#include +using namespace std; +/* struct _EmptyList { void write() const {} }; @@ -49,3 +52,36 @@ int main() { Writer().add(3).add("alpha").add(4.53).write(); } +*/ + +class A { +public: + typedef int X; +}; + +class C { +}; + +template +class TRUE { +public: + static const bool state = true; +}; + +template +class B { +public: + typedef enable_if state; +}; + +template +class B<_A, void> { +public: + static const bool state = true; +}; + +int main() { + printf("%s\n", B::state(), true ? "true" : "false"); + printf("%s\n", B::state(), true ? "true" : "false"); + return 0; +}