fix(Log): treat pt::Log::Manipulators as enum and not as int

This commit is contained in:
Tomasz Sowa 2022-04-16 21:52:53 +02:00
parent 64e5114947
commit 7a115a3970
2 changed files with 11 additions and 3 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2019, Tomasz Sowa
* Copyright (c) 2008-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -252,7 +252,14 @@ Log & Log::operator<<(LogManipulators m)
break;
}
return *this;
return *this;
}
Log & Log::operator<<(pt::Log::Manipulators m)
{
pt::Log::operator<<(m);
return *this;
}

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2019, Tomasz Sowa
* Copyright (c) 2008-2022, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -79,6 +79,7 @@ public:
virtual Log & operator<<(double s);
virtual Log & operator<<(const pt::Space & space);
virtual Log & operator<<(LogManipulators m);
virtual Log & operator<<(pt::Log::Manipulators m);
virtual Log & operator<<(const pt::Date & date);
virtual Log & operator<<(morm::Model & model);