In CLion 2018.1.2 the following code causes CLion to give a "Parameter Type Mismatch" error.
Which it didn't in version 2018.1.1. The code compiles correctly and all test cases pass. I've uploaded a screenshot using the web form. The file name is error.png.
The signature of the addComponent method is:
template <class T> Status addComponent(std::function<void(T*)> init)
It complains that "Types: 'std::function<void(MockComponentOne*)>' and 'void(*)(MockComponentOne*)' are not compatible". Please fix. It's really annoying.