Create a gist now

Instantly share code, notes, and snippets.

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