ROS2 Subscriber defined in Class (Win10, Visual Studio 14)

Do you mind posting your solution here? This might be helpful for people stumbling upon the same error from search machines.