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