Hi there,
I’m so used to forward declaring classes in the header file and then typing the include in the source file that I just did that automatically when asked to make our IOnlineSessionPtr variable a member variable. But doing so gives me the error:
error C2079: ‘UMultiplayerSessionsSubsystem::OnlineSession’ uses undefined class ‘IOnlineSessionPtr’
Tried Googling but couldn’t find a similar question being posed. Would just be curious to know what makes this different to any other class type that you’d usually forward declare that makes this impossible, as I know avoiding includes in the header file when you can is good practice.
Any help would be appreciated, thanks!