This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Visual C++ 2010 fails to call the destructor.

By: a guest on Dec 7th, 2011  |  syntax: C++  |  size: 0.18 KB  |  views: 87  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class TestDtor
  2. {
  3. public:
  4.     TestDtor()
  5.     {
  6.         BOOST_ASSERT(false);
  7.     }
  8.  
  9.     ~TestDtor()
  10.     {
  11.         BOOST_ASSERT(false);
  12.     }
  13. };
  14.  
  15. static TestDtor test_dtor;
  16.  
  17.  
clone this paste RAW Paste Data