Remove MSVC workarounds. Patch from STL@microsoft.com

llvm-svn: 283580
This commit is contained in:
Eric Fiselier 2016-10-07 18:51:33 +00:00
parent c0169fa94f
commit 89c9191447
1 changed files with 2 additions and 8 deletions

View File

@ -88,10 +88,7 @@ public:
{::new(static_cast<void*>(p)) T(std::forward<U>(val));}
#endif
void destroy(pointer p)
{
p->~T();
((void)p); // Prevent MSVC's spurious unused warning
}
{p->~T();}
friend bool operator==(const test_allocator& x, const test_allocator& y)
{return x.data_ == y.data_;}
friend bool operator!=(const test_allocator& x, const test_allocator& y)
@ -291,10 +288,7 @@ public:
template<typename U, typename... Args>
void destroy(U* p)
{
p->~U();
((void)p); // Prevent MSVC's spurious unused warning
}
{ p->~U(); }
};
template<typename T, typename U>