Avoid reference to null errors in sanitizers

This commit is contained in:
Ion Gaztañaga 2016-11-12 23:55:20 +01:00
parent 4f8459e868
commit 3e216dd481

View File

@ -34,7 +34,8 @@ struct nothrow
};
template <int Dummy>
std::nothrow_t *nothrow<Dummy>::pnothrow;
std::nothrow_t *nothrow<Dummy>::pnothrow =
reinterpret_cast<std::nothrow_t *>(0x1234); //Avoid sanitizer warnings on references to null
}} //namespace boost{ namespace interprocess {