Skip to content

Commit

Permalink
fixed noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
bebuch committed Nov 27, 2018
1 parent 8fc5d5e commit df1a217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/logsys/basic_log_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace logsys{
struct basic_log_base{
/// \brief Add a line to the log
template < typename LogF >
void log(LogF&& log_f)const{
void log(LogF&& log_f)const noexcept{
detail::log(
manipulate_fn_forward< Derived >(
static_cast< Derived const& >(*this)), log_f);
Expand All @@ -73,7 +73,7 @@ namespace logsys{
/// \brief Add a line to the log with linked code block and catch all
/// exceptions
template < typename LogF, typename Body >
auto exception_catching_log(LogF&& log_f, Body&& body)const{
auto exception_catching_log(LogF&& log_f, Body&& body)const noexcept{
return detail::exception_catching_log(
manipulate_fn_forward< Derived >(
static_cast< Derived const& >(*this)), log_f, body);
Expand Down
4 changes: 2 additions & 2 deletions include/logsys/log_ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace logsys{
public:
/// \brief Add a line to the log
template < typename LogF >
void log(LogF&& f)const{
void log(LogF&& f)const noexcept{
ref_.log(static_cast< LogF&& >(f));
}

Expand All @@ -34,7 +34,7 @@ namespace logsys{
/// \brief Add a line to the log with linked code block and catch all
/// exceptions
template < typename LogF, typename Body >
auto exception_catching_log(LogF&& f, Body&& body)const{
auto exception_catching_log(LogF&& f, Body&& body)const noexcept{
return ref_.exception_catching_log(
static_cast< LogF&& >(f), static_cast< Body&& >(body));
}
Expand Down

0 comments on commit df1a217

Please sign in to comment.