mirror of
https://git.suyu.dev/suyu/ext-boost.git
synced 2025-12-23 06:06:13 +01:00
Update to boost 1.66
This commit is contained in:
parent
9ffbf897dc
commit
d80e506e17
203 changed files with 14820 additions and 2478 deletions
|
|
@ -51,31 +51,41 @@ namespace container {
|
|||
|
||||
inline void throw_bad_alloc()
|
||||
{
|
||||
BOOST_ASSERT(!"boost::container bad_alloc thrown");
|
||||
const char msg[] = "boost::container bad_alloc thrown";
|
||||
(void)msg;
|
||||
BOOST_ASSERT(!msg);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
inline void throw_out_of_range(const char* str)
|
||||
{
|
||||
BOOST_ASSERT_MSG(!"boost::container out_of_range thrown", str);
|
||||
const char msg[] = "boost::container out_of_range thrown";
|
||||
(void)msg; (void)str;
|
||||
BOOST_ASSERT_MSG(!msg, str);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
inline void throw_length_error(const char* str)
|
||||
{
|
||||
BOOST_ASSERT_MSG(!"boost::container length_error thrown", str);
|
||||
const char msg[] = "boost::container length_error thrown";
|
||||
(void)msg; (void)str;
|
||||
BOOST_ASSERT_MSG(!msg, str);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
inline void throw_logic_error(const char* str)
|
||||
{
|
||||
BOOST_ASSERT_MSG(!"boost::container logic_error thrown", str);
|
||||
const char msg[] = "boost::container logic_error thrown";
|
||||
(void)msg; (void)str;
|
||||
BOOST_ASSERT_MSG(!msg, str);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
inline void throw_runtime_error(const char* str)
|
||||
{
|
||||
BOOST_ASSERT_MSG(!"boost::container runtime_error thrown", str);
|
||||
const char msg[] = "boost::container runtime_error thrown";
|
||||
(void)msg; (void)str;
|
||||
BOOST_ASSERT_MSG(!msg, str);
|
||||
std::abort();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue