// ---------------------------------------------------------------------- // // validate.cc - check out our approach to handling namespaces in an // environment that does not support namespaces // // ---------------------------------------------------------------------- #ifndef __STANDARD_CPLUSPLUS #ifndef using #define using #define NOTusing #endif #ifndef std #define std #endif #endif // __STANDARD_CPLUSPLUS #if 0 namespace std {} using namespace std; #endif // 0 #include int main() { using std::cout; std::cout << "ok" << endl; return 0; }