As already mentioned, changing the file types from Objective-C (.m extension) to Objective-C++ (.mm extension) resolved the issue.
.m
.mm