Index: boost/logging/format/destination/defaults.hpp =================================================================== --- boost/logging/format/destination/defaults.hpp (Revision 40620) +++ boost/logging/format/destination/defaults.hpp (Arbeitskopie) @@ -36,6 +36,8 @@ template struct cout_t : is_generic, boost::logging::op_equal::always_equal { template void operator()(const msg_type & msg) const { +// Remark: Unicode is a character set which exist in various encodings +// Some encodings such as UTF-8 do not require wchar support! #ifndef UNICODE convert_dest::write(msg, std::cout); #else @@ -59,7 +61,9 @@ #endif #else // non windows - msg; // so that there's no warning + // warning: statement has no effect + // msg; // so that there's no warning + std::cout << msg; #endif } }; Index: boost/logging/format.hpp =================================================================== --- boost/logging/format.hpp (Revision 40620) +++ boost/logging/format.hpp (Arbeitskopie) @@ -390,7 +390,7 @@ is_fmt, is_dest, is_clear }; struct item { - item() : m_type(is_clear), m_fmt(0), m_dest(0) {} + item() : m_fmt(0), m_dest(0), m_type(is_clear) {} item& fmt(formatter_ptr f) { m_fmt = f; m_type = is_fmt; return *this; } item &dest(destination_ptr d) { m_dest = d; m_type = is_dest; return *this; } formatter_ptr m_fmt; Index: lib/logging/samples/vc8/loggingvc8/stdafx.cpp =================================================================== --- lib/logging/samples/vc8/loggingvc8/stdafx.cpp (Revision 40620) +++ lib/logging/samples/vc8/loggingvc8/stdafx.cpp (Arbeitskopie) @@ -4,5 +4,5 @@ #include "stdafx.h" -// TODO: reference any additional headers you need in STDAFX.H +// TODO: reference any additional headers you need in stdafx.h // and not in this file Index: lib/logging/samples/vc8/loggingvc8/ReadMe.txt =================================================================== --- lib/logging/samples/vc8/loggingvc8/ReadMe.txt (Revision 40620) +++ lib/logging/samples/vc8/loggingvc8/ReadMe.txt (Arbeitskopie) @@ -1,3 +1,4 @@ +Useless directory, remove!!!? ======================================================================== CONSOLE APPLICATION : loggingvc8 Project Overview ======================================================================== @@ -20,9 +21,9 @@ ///////////////////////////////////////////////////////////////////////////// Other standard files: -StdAfx.h, StdAfx.cpp +stdafx.h, stdafx.cpp These files are used to build a precompiled header (PCH) file - named loggingvc8.pch and a precompiled types file named StdAfx.obj. + named loggingvc8.pch and a precompiled types file named stdafx.obj. ///////////////////////////////////////////////////////////////////////////// Other notes: Index: lib/logging/samples/basic_usage/stdafx.cpp =================================================================== --- lib/logging/samples/basic_usage/stdafx.cpp (Revision 40620) +++ lib/logging/samples/basic_usage/stdafx.cpp (Arbeitskopie) @@ -4,5 +4,5 @@ #include "stdafx.h" -// TODO: reference any additional headers you need in STDAFX.H +// TODO: reference any additional headers you need in stdafx.h // and not in this file Index: lib/logging/samples/scenarios/fastest_use_ostr_like.cpp =================================================================== --- lib/logging/samples/scenarios/fastest_use_ostr_like.cpp (Revision 40620) +++ lib/logging/samples/scenarios/fastest_use_ostr_like.cpp (Arbeitskopie) @@ -68,7 +68,7 @@ BOOST_DEFINE_LOG_FILTER(g_log_filter, filter::no_ts ) // Step 3: declare which loggers you'll use -BOOST_DEFINE_LOG(g_log_app, app_log_type ); +BOOST_DEFINE_LOG(g_log_app, app_log_type ) BOOST_DEFINE_LOG_WITH_ARGS( g_log_err, err_log_type, ("err.txt") ) // Step 4: define the macros through which you'll log Index: lib/logging/samples/gcc/main.cpp =================================================================== --- lib/logging/samples/gcc/main.cpp (Revision 40620) +++ lib/logging/samples/gcc/main.cpp (Arbeitskopie) @@ -1,11 +1,12 @@ #include #include +// Why is this file located in gcc/? Is it compiler specific? using namespace std; void custom_fmt_dest_example() ; -int main(int argc, char *argv[]) +int main(int, char *[]) { custom_fmt_dest_example();