Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD] boost_log compilation error (possibly dangling reference) #440

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions instrumentation/boost_log/src/sink.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static bool ToTimestampDefault(const boost::log::record_view &record,
static constexpr boost::posix_time::ptime kEpochTime(boost::gregorian::date(1970, 1, 1));
static constexpr boost::posix_time::ptime kInvalid{};

const auto &timestamp =
auto timestamp =
boost::log::extract_or_default<boost::posix_time::ptime>(record["TimeStamp"], kInvalid);
value = system_clock::time_point(nanoseconds((timestamp - kEpochTime).total_nanoseconds()));
return timestamp != kInvalid;
Expand All @@ -36,7 +36,7 @@ static bool ToThreadIdDefault(const boost::log::record_view &record, std::string
{
static constexpr boost::log::aux::thread::id kInvalid{};

const auto &thread_id =
auto thread_id =
boost::log::extract_or_default<boost::log::aux::thread::id>(record["ThreadID"], kInvalid);

std::stringstream ss;
Expand Down
Loading