/* try.cpp - for trying out some language features.... * scons will create the binary bin/try * */ // 8/07 - how to control NOBUG?? // execute with NOBUG_LOG='ttt:TRACE' bin/try // 1/08 - working out a static initialisation problem for Visitor (Tag creation) // 1/08 - check 64bit longs // 4/08 - comparison operators on shared_ptr // 4/08 - conversions on the value_type used for boost::any #include #include #include #include using std::string; using std::cout; using boost::any; using boost::any_cast; struct B {}; struct D : B {}; int main (int argc, char* argv[]) { NOBUG_INIT; D d; D* pD =&d; any aD (pD); any_cast (aD); cout << "\ngulp\n"; return 0; }