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:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user