Fixed error in default_init_allocator, it should not construct objects, only allocate raw memory.

[SVN r85999]
This commit is contained in:
Ion Gaztañaga
2013-09-29 11:39:34 +00:00
parent 232e18956a
commit 59c5ed7781
2 changed files with 5 additions and 13 deletions

View File

@@ -11,14 +11,6 @@
#include <boost/detail/lightweight_test.hpp>
#include <boost/detail/no_exceptions_support.hpp>
// TODO: Disable parts of the unit test that should not run when BOOST_NO_EXCEPTIONS
// if exceptions are enabled there must be a user defined throw_exception function
#ifdef BOOST_NO_EXCEPTIONS
namespace boost {
void throw_exception(std::exception const &){}; // user defined
} // namespace boost
#endif // BOOST_NO_EXCEPTIONS
#include <vector>
#include <list>