Skip to content

Instantly share code, notes, and snippets.

@thiagomg thiagomg/templ.cpp
Created Sep 16, 2015

What would you like to do?
Template and OO
template <>
struct add<bool> {
add(std::string &buffer, bool val, int size_inc) {
string s = val?"Y":"N";
_check_size(buffer, s.size(), size_inc);
buffer += s;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.