mirror of https://github.com/davisking/dlib.git
Changed code slightly to avoid a compiler error that you get from
some versions of visual studio 2005. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403566
This commit is contained in:
parent
0e2f88fe3d
commit
d02aaa1bde
|
@ -68,6 +68,17 @@ namespace dlib
|
|||
const uint64 thread_id
|
||||
);
|
||||
|
||||
template <
|
||||
typename T
|
||||
>
|
||||
void set_all_logging_output_hooks (
|
||||
T& object,
|
||||
void (T::*hook_)(const std::string& logger_name,
|
||||
const log_level& l,
|
||||
const uint64 thread_id,
|
||||
const char* message_to_log)
|
||||
);
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
class logger
|
||||
|
@ -586,7 +597,7 @@ namespace dlib
|
|||
)
|
||||
{
|
||||
logger::hook_mfp hook;
|
||||
hook.set(object, hook_);
|
||||
hook.set<T>(object, hook_);
|
||||
|
||||
logger::global_data& gd = logger::get_global_data();
|
||||
auto_mutex M(gd.m);
|
||||
|
@ -624,6 +635,8 @@ namespace dlib
|
|||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#ifdef NO_MAKEFILE
|
||||
|
|
Loading…
Reference in New Issue