merged from trunk

[SVN r49439]
This commit is contained in:
Eric Niebler
2008-10-22 20:32:22 +00:00
parent 143bc65c92
commit aebadc009c
2 changed files with 9 additions and 2 deletions

View File

@ -181,7 +181,13 @@ void construct(void* p,const Type& t)
template<typename Type>
void destroy(const Type* p)
{
#if BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590))
const_cast<Type*>(p)->~Type();
#else
p->~Type();
#endif
}
} /* namespace boost::detail::allocator */

View File

@ -79,8 +79,8 @@
// specialized on those types for this to work.
#include <locale>
#include <cwchar> // for mbstate_t
#include <cstddef> // for std::size_t
#include <cwchar> // for mbstate_t
#include <cstddef> // for std::size_t
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
@ -88,6 +88,7 @@
#if defined(BOOST_NO_STDC_NAMESPACE)
using ::codecvt;
using ::mbstate_t;
using ::size_t
#endif
#if !defined(__MSL_CPP__) && !defined(__LIBCOMO__)