Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. std::map<std::string, void (*)()> funcs {
  2. {"print", &h::print},
  3. {"scan", &h::scan_cmd},
  4. {"connect", &h::stream},
  5. {"stream", &h::stream}
  6. };
  7.  
  8. No matching constructor for initialization of 'std::map<std::string, void (*)()>' (aka 'map<basic_string<char>, void (*)()>')
  9.  
  10. std::map<std::string, void (*)()> funcs;
  11. funcs["print"] = &print;
  12. funcs["scan"] = &scan_cmd;
  13. funcs[connect"] = &stream;
  14. funcs["stream"] = &stream;
  15.  
  16. Size of array has non-integer type ' const char [6]'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement