added macro PT_HAS_MORM in Log class where operator<<(morm::Model & model) is used

pull/4/head
Tomasz Sowa 2 years ago
parent 7abe4b340a
commit adee7d134f

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -41,8 +41,9 @@
#include "date/date.h"
#include "utf8/utf8.h"
#ifdef PT_HAS_MORM
#include "morm.h"
#endif
namespace PT
{
@ -312,13 +313,13 @@ Log & Log::operator<<(const PT::Date & date)
}
#ifdef PT_HAS_MORM
Log & Log::operator<<(morm::Model & model)
{
operator<<(model.to_string());
return *this;
}
#endif
Log & Log::operator<<(Manipulators m)

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -131,8 +131,9 @@ public:
virtual Log & operator<<(const PT::Space & space);
virtual Log & operator<<(const PT::Date & date);
#ifdef PT_HAS_MORM
virtual Log & operator<<(morm::Model & model);
#endif
virtual Log & operator<<(Manipulators m);

Loading…
Cancel
Save