C++ Error: Expected a type specifier
You can’t construct class members like this:- Instead, use an initialization list in the constuctor, like this: And I think you’ve fallen foul of the “Most Vexing Parse” because the compiler thinks logger must be a function, and it’s complaining that L”Test Component” is not a type specifier for a parameter.