Fix functional for no parameters
This commit is contained in:
parent
884fe50dd7
commit
b1b5ee737b
|
@ -51,6 +51,11 @@ public:
|
|||
f.c = nullptr;
|
||||
}
|
||||
|
||||
function(void)
|
||||
{
|
||||
c = nullptr;
|
||||
}
|
||||
|
||||
function & operator=(const function & f)
|
||||
{
|
||||
if (c != f.c)
|
||||
|
|
|
@ -1715,7 +1715,7 @@ bool Declaration::ResolveTemplate(Declaration* fdec, Declaration* tdec)
|
|||
{
|
||||
if (tpdec->mBase->mType == DT_PACK_TEMPLATE)
|
||||
{
|
||||
if (fpdec->mBase->mType == DT_PACK_TEMPLATE)
|
||||
if (fpdec && fpdec->mBase->mType == DT_PACK_TEMPLATE)
|
||||
mScope->Insert(tdec->mIdent, fpdec);
|
||||
else
|
||||
{
|
||||
|
|
|
@ -6104,7 +6104,6 @@ int Parser::OverloadDistance(Declaration* fdec, Expression* pexp)
|
|||
{
|
||||
if (pexp->mRight && pexp->mRight->mDecType->IsConstSame(fdec->mBase->mParams->mBase->mBase))
|
||||
return NOOVERLOAD;
|
||||
printf("oopsie");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue