gcc Var Date compile fix

This commit is contained in:
aleks-f 2013-02-09 22:50:32 -06:00
parent 6a859abb41
commit 134a2b9a73

View File

@ -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
{