From c192777aefdc05dc381b7556afb6a6d1b877ad8b Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 28 Feb 2015 09:53:09 +0100 Subject: [PATCH] fix missing include in caller_context.hpp and let the possibility to dump function at compile time. --- include/boost/thread/caller_context.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/thread/caller_context.hpp b/include/boost/thread/caller_context.hpp index 1e341686..d035baf6 100644 --- a/include/boost/thread/caller_context.hpp +++ b/include/boost/thread/caller_context.hpp @@ -12,6 +12,7 @@ #include #endif #include +#include #include #include @@ -43,9 +44,11 @@ namespace boost #endif { io::ios_flags_saver ifs(os); - os << ctx.filename << "[" + os << std::setw(50) << ctx.filename << "[" << std::setw(4) << std::right << std::dec<< ctx.lineno << "] "; +#if defined BOOST_THREAD_USES_LOG_CURRENT_FUNCTION os << ctx.func << " " ; +#endif } return os; }