Okay I solved it.
I forgot to include: #include “Widgets/SWidget.h” #include “Widgets/SViewport.h”
So complier didn’t know how to handle comparison.