language: C++11 (gcc-4.7.2)
date: 251 days 17 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>
#include <functional>
using namespace std;
 
typedef int (*http_cb) (int*);
 
struct http_parser_settings {
  http_cb      on_message_begin;
};
 
class HttpParser
{
  int OnMessageBegin(int* val){}
 
  HttpParser()
  {
    http_parser_settings settings;
    //settings.on_message_begin = std::bind(&HttpParser::OnMessageBegin, this, //std::placeholders::_1);
   settings.on_message_begin = [](int* p){ return 0;};
  }
};
 
int main() {
 
}