i am getting below error
Severity Code Description Project File Line Suppression State Details
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error (active) E0289 no instance of constructor "std::map<_Kty, _Ty, _Pr, _Alloc>::map [with _Kty=std::string, _Ty=MethodHolder::FunctionPointer, _Pr=std::lessstd::string, _Alloc=std::allocator<std::pair<const std::string, MethodHolder::FunctionPointer>>]" matches the argument list FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\State.h 10
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.h 10
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\Event.h 15
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBase.cpp 90
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\State.h 10
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.h 10
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\Event.h 15
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBuilder.cpp 18
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBuilder.cpp 20
Error C2664 'void State::Add(FSMBase *)': cannot convert argument 1 from 'Event *' to 'FSMBase *' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBuilder.cpp 32
Error C2664 'void State::Add(FSMBase *)': cannot convert argument 1 from 'Event *' to 'FSMBase *' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBuilder.cpp 49
Error C2664 'void PrimitiveTool::Add(FSMBase *)': cannot convert argument 1 from 'State *' to 'FSMBase *' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\FSMBuilder.cpp 54
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\State.h 10
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\Event.h 15
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23
Error C2664 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>>::map(std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>)': cannot convert argument 1 from 'initializer list' to 'std::initializer_list<std::pair<const std::string,MethodHolder::FunctionPointer>>' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 20
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.cpp 30
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.cpp 47
Error C2039 'StateName': is not a member of 'State' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.cpp 60
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.h 10
Error C2061 syntax error: identifier 'FSMBase' FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\PrimitiveTool.h 17
Error C2504 'FSMBase': base class undefined FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\Event.h 15
Error C2086 'std::map<std::string,MethodHolder::FunctionPointer,std::lessstd::string,std::allocator<std::pair<const std::string,MethodHolder::FunctionPointer>>> MethodHolder::functionmap': redefinition FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 52
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 21
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 22
Error C2276 '&': illegal operation on bound member function expression FsmImplementation C:\Users\1038586\Downloads\FsmImplementation11142024\FsmImplementation\FsmImplementation\MethodHolder.h 23