mirror of
https://github.com/boostorg/multi_array.git
synced 2025-05-12 05:41:37 +00:00
Updated the ASSERT hooks with an implementation for assertion_failed_msg.
[SVN r78494]
This commit is contained in:
parent
bc5df6a074
commit
2bccb07ac8
@ -23,10 +23,18 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
void assertion_failed(char const* expr, char const* function,
|
void assertion_failed(char const* expr, char const* function,
|
||||||
char const* file, long line) {
|
char const* file, long line) {
|
||||||
throw std::runtime_error(expr);
|
throw std::runtime_error(expr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void assertion_failed_msg(char const * expr, char const * msg,
|
||||||
|
char const * function,
|
||||||
|
char const * file, long line) {
|
||||||
|
throw std::runtime_error(msg);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
using namespace boost;
|
using namespace boost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user