- Address: Sao Paulo - Brazil
- Phone: +55 11 97058 8262
- Email: indiosmo@gmail.com
- LinkedIn: https://www.linkedin.com/in/luiz-siqueira-745aa114
- GitHub: https://github.com/indiosmo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
template <class T, class...Args> | |
auto ftemplate(T& t) { | |
auto thunk = [&t](auto& f, Args&&... args) { | |
auto post = [&t, &f, ... args = std::forward<Args>(args)] { | |
f(t, std::forward<decltype(args)>(args)...); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct client_protocol | |
{ | |
// clang-format off | |
// public interface | |
struct ev_connect{}; | |
struct ev_disconnect{}; | |
// connection handlers | |
struct ev_error{}; |