2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-01 08:32:15 +00:00

Added a new queue overflow policy which allows to return an error code if the queue is full. Added a test for the new policy. Changed the interface slightly to use the common message size typedef and use this typedef to check the message size before enqueueing it.

This commit is contained in:
Andrey Semashev
2016-03-13 15:58:11 +03:00
parent 6c49eccaa2
commit 85092ef741
7 changed files with 162 additions and 108 deletions

View File

@@ -467,6 +467,22 @@ logic_error::~logic_error() throw()
{
}
void logic_error::throw_(const char* file, std::size_t line, const char* descr)
{
boost::throw_exception(boost::enable_error_info(logic_error(descr))
<< boost::throw_file(file)
<< boost::throw_line(line)
);
}
void logic_error::throw_(const char* file, std::size_t line, std::string const& descr)
{
boost::throw_exception(boost::enable_error_info(logic_error(descr))
<< boost::throw_file(file)
<< boost::throw_line(line)
);
}
odr_violation::odr_violation() :
logic_error("ODR violation detected")
{