There are 2 errors:
Colleague::MyCallBack
should takeconst string&
instead ofstring&
and
Mediator::SignOn
should takeCallBack callBack_in
instead ofCallBack&
- the type
CallBack
defines a pointer to function, so variable / parameter of typeCallBack
needs to be initialized with an address of function (just like you do), but yourSignOn
as it is now takes a reference toCallBack
(get rid of&
there)
- the type