Last active
August 27, 2015 18:25
-
-
Save thiagomg/0d15b70d53aa72ecdbc0 to your computer and use it in GitHub Desktop.
Lambda - Parser example
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
fix_parser parser; | |
msg_transport::received_msg(transport, [&m](auto &data) { | |
message m = parser.get_msg(data); | |
processor.new_msg(m); | |
}); | |
msg_transport::received_cmd(transport, [&m](auto &data) { | |
command c = parser.get_msg(data); | |
admin.new_msg(c); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment