Ubuntu Pastebin

Paste from Vorlon at Thu, 6 Aug 2015 06:16:47 +0000

Download as text
1
2
3
4
5
    // We don't want the internal 'std::string str' to redundantly store the
    // chars, along with our own allocation.  So we use our knowledge of the
    // internal structure of std::string (for certain compilers) to force
    // the std::string to make it point to our chars!  In such a case, the
    // destructor will be careful not to allow a deallocation.
Download as text