forked from boostorg/container
* Another try to fix [boostorg/container] unused parameter warning when compiling with assertions disabled (#56)
This commit is contained in:
@@ -60,7 +60,7 @@ namespace container {
|
|||||||
inline void throw_out_of_range(const char* str)
|
inline void throw_out_of_range(const char* str)
|
||||||
{
|
{
|
||||||
const char msg[] = "boost::container out_of_range thrown";
|
const char msg[] = "boost::container out_of_range thrown";
|
||||||
(void)msg;
|
(void)msg; (void)str;
|
||||||
BOOST_ASSERT_MSG(!msg, str);
|
BOOST_ASSERT_MSG(!msg, str);
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ namespace container {
|
|||||||
inline void throw_length_error(const char* str)
|
inline void throw_length_error(const char* str)
|
||||||
{
|
{
|
||||||
const char msg[] = "boost::container length_error thrown";
|
const char msg[] = "boost::container length_error thrown";
|
||||||
(void)msg;
|
(void)msg; (void)str;
|
||||||
BOOST_ASSERT_MSG(!msg, str);
|
BOOST_ASSERT_MSG(!msg, str);
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ namespace container {
|
|||||||
inline void throw_logic_error(const char* str)
|
inline void throw_logic_error(const char* str)
|
||||||
{
|
{
|
||||||
const char msg[] = "boost::container logic_error thrown";
|
const char msg[] = "boost::container logic_error thrown";
|
||||||
(void)msg;
|
(void)msg; (void)str;
|
||||||
BOOST_ASSERT_MSG(!msg, str);
|
BOOST_ASSERT_MSG(!msg, str);
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
@@ -84,7 +84,7 @@ namespace container {
|
|||||||
inline void throw_runtime_error(const char* str)
|
inline void throw_runtime_error(const char* str)
|
||||||
{
|
{
|
||||||
const char msg[] = "boost::container runtime_error thrown";
|
const char msg[] = "boost::container runtime_error thrown";
|
||||||
(void)msg;
|
(void)msg; (void)str;
|
||||||
BOOST_ASSERT_MSG(!msg, str);
|
BOOST_ASSERT_MSG(!msg, str);
|
||||||
std::abort();
|
std::abort();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user