mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
gcc Var Date compile fix
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user