/** * This program checks if the compiler doesn't have a certain bug * that we encountered when testing with ACE */ #include "test_config.h" #include template class my_map { public: my_map () : capacity_ (0), nodes_(0) {} ~my_map (); using key_type = key; using data_type = value; using value_type = std::pair; size_t capacity_; value_type* nodes_; }; template my_map::~my_map () { for (size_t i = 0; i != capacity_; ++i) { #if defined (ACE_HAS_BCC32) using std::pair; (nodes_ + i)->~pair(); #else (nodes_ + i)->~value_type (); #endif } } class Bar { public: Bar () {} ~Bar () {} }; int run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT("Compiler_Features_37_Test")); my_map foo; ACE_UNUSED_ARG(foo); ACE_DEBUG ((LM_INFO, ACE_TEXT ("C++ support ok\n"))); ACE_END_TEST; return 0; }