Created
November 13, 2019 14:34
-
-
Save vinniefalco/58777dc0cd2c0c042340a44215907e52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BOOST_NO_EXCEPTIONS | |
try | |
{ | |
#endif | |
string_impl tmp(t->size, sp); | |
std::memcpy( | |
tmp.data(), | |
data(), | |
size()); | |
destroy(sp); | |
*this = tmp; | |
#ifndef BOOST_NO_EXCEPTIONS | |
} | |
catch(std::exception const&) | |
{ | |
// eat the exception | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment