Fixed compilation warnings

This commit is contained in:
matlabbe
2022-01-16 15:27:52 -05:00
parent 9622fe8393
commit 7a5c50cb0e
4 changed files with 15 additions and 6 deletions

View File

@@ -78,7 +78,9 @@ struct big_any_policy : typed_base_any_policy<T>
{
virtual void static_delete(void** x)
{
if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
if (* x)
delete (* reinterpret_cast<T**>(x));
*x = NULL;
}
virtual void copy_from_value(void const* src, void** dest)
{