mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-04 09:37:11 +02:00
gcc Var Date compile fix
This commit is contained in:
parent
6a859abb41
commit
134a2b9a73
@ -142,10 +142,12 @@ using Poco::DateTime;
|
|||||||
template <>
|
template <>
|
||||||
Var::operator Date () const
|
Var::operator Date () const
|
||||||
{
|
{
|
||||||
if (!_pHolder)
|
VarHolder* pHolder = content();
|
||||||
|
|
||||||
|
if (!pHolder)
|
||||||
throw InvalidAccessException("Can not convert empty value.");
|
throw InvalidAccessException("Can not convert empty value.");
|
||||||
|
|
||||||
if (typeid(Date) == content()->type())
|
if (typeid(Date) == pHolder->type())
|
||||||
return extract<Date>();
|
return extract<Date>();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user