Skip to content

Instantly share code, notes, and snippets.

View hoditohod's full-sized avatar

Szekely Gyorgy hoditohod

  • Szeged, Hungary
View GitHub Profile
@hoditohod
hoditohod / demo.cpp
Created September 13, 2020 20:21
Code for async_read_some question
#include <boost/asio.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/beast/core.hpp>
//#include <zmq.hpp>
using namespace std::chrono_literals;
const std::size_t WSClientSendFrameSize = 8*1024; //128*1024;
//zmq::context_t zmqCtx;
@hoditohod
hoditohod / lambdaHolderVoid.cpp
Created December 2, 2015 20:42
Lambda expression holder - void* version
#include <iostream>
using namespace std;
// blank template class
template<typename T>
class Holder { };
// specialized one with call signature
template<typename RetType, typename... ArgsType>
@hoditohod
hoditohod / lambdaHolderPoly.cpp
Created December 2, 2015 20:37
Lambda expression holder - polymorphic version
#include <iostream>
#include <memory>
using namespace std;
// blank template class
template<typename T>
class Holder { };
// specialized one with call signature