fork download
  1. #include <iostream>
  2. #include <functional>
  3. using namespace std;
  4.  
  5. typedef int (*http_cb) (int*);
  6.  
  7. struct http_parser_settings {
  8. http_cb on_message_begin;
  9. };
  10.  
  11. class HttpParser
  12. {
  13. int OnMessageBegin(int* val){}
  14.  
  15. HttpParser()
  16. {
  17. http_parser_settings settings;
  18. //settings.on_message_begin = std::bind(&HttpParser::OnMessageBegin, this, //std::placeholders::_1);
  19. settings.on_message_begin = [](int* p){ return 0;};
  20. }
  21. };
  22.  
  23. int main() {
  24.  
  25. }
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout

Standard output is empty