Skip to content

Commit

Permalink
print_precise_timestamp(): use NOEXCEPT instead of throw()
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Sep 9, 2017
1 parent ac40b01 commit 8e9874d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/log.cpp
Expand Up @@ -27,6 +27,7 @@
#include <sstream>
#include <ctime>

#include "global.hpp"
#include "utils/io.hpp"

namespace {
Expand Down Expand Up @@ -195,15 +196,15 @@ std::string get_timespan(const time_t& t) {
return sout.str();
}

static void print_precise_timestamp(std::ostream & out) throw()
static void print_precise_timestamp(std::ostream & out) NOEXCEPT
{
try{
try {
facet.put(
std::ostreambuf_iterator<char>(out),
out,
' ',
boost::posix_time::microsec_clock::local_time());
} catch(...){}
} catch(...) {}
}

std::ostream &logger::operator()(log_domain const &domain, bool show_names, bool do_indent) const
Expand Down

0 comments on commit 8e9874d

Please sign in to comment.