C++ Compiling Error converting from 4.19 to 4.22

Hi!

I’ve com across a compiling error trying to convert my proyect from 4.19 to 4.22. This are the errors:

ue_4.22\engine\source\runtime\imagewritequeue\public\ImageWriteTask.h(74): error C2144: syntax error: 'bool' should be preceded by ';'
ue_4.22\engine\source\runtime\imagewritequeue\public\ImageWriteTask.h(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
ue_4.22\engine\source\runtime\imagewritequeue\public\ImageWriteTask.h(75): error C2144: syntax error: 'void' should be preceded by ';'
ue_4.22\engine\source\runtime\imagewritequeue\public\ImageWriteTask.h(75): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
LerpAspectRatio.h(14): error C4596: '{ctor}': illegal qualified name in member declaration

This is the line 14 of the file LerpAspectRatio.h:

FLerpAspectRatio::FLerpAspectRatio(float LerpTime, UCameraComponent* TargetCamera, float InitialAspectRatio, float TargetAspectRatio, const FLatentActionInfo& LatentInfo)

I don’t know what to do or search to fix this problems. Anyone has any clue on how to solve this errors?
Thanks!

For this error:

LerpAspectRatio.h(14): error C4596: '{ctor}': illegal qualified name in member declaration

I have to use what is answered here. This is the code i had for the class LerpAspectRatio:

class LerpAspectRation 
{
public:
    LerpAspectRation::LerpAspectRation(...)
    {
        ...
    }
};

and for Visual studio 2017 using the name of the class before the name of a function in the .h file is an error. This is the fix:

class LerpAspectRatio
{
public:
    LerpAspectRatio(...)
    {
        ...
    }
};

The other errors disapear when I fix this error, so it works right now. I can compile my proyect using 4.22 at last!