Skip to content

Commit

Permalink
report_at_exit fix for empty auto_{list,tuple}
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmadsen committed Aug 6, 2019
1 parent 8f1cac8 commit 7204286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/timemory/variadic/auto_list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ auto_list<Types...>::~auto_list()
{
std::stringstream ss;
ss << m_temporary_object;
std::cout << ss.str() << std::endl;
if(ss.str().length() > 0)
std::cout << ss.str() << std::endl;
}

if(m_reference_object)
Expand Down
3 changes: 2 additions & 1 deletion source/timemory/variadic/auto_tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ auto_tuple<Types...>::~auto_tuple()
{
std::stringstream ss;
ss << m_temporary_object;
std::cout << ss.str() << std::endl;
if(ss.str().length() > 0)
std::cout << ss.str() << std::endl;
}

if(m_reference_object)
Expand Down

0 comments on commit 7204286

Please sign in to comment.