summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-11 14:41:31 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-11 14:41:31 +0200
commit612629df8b915a0c87dbd6c29ad305aaedcbe0fd (patch)
tree976e8ff41e9eef395cbbd7c83f6bc71d4913d8ee
parent3515d58c0369e7aac7fb40d0d298c98f90139e54 (diff)
m_spanningtree Add CmdBuilder::push_raw_int()
-rw-r--r--src/modules/m_spanningtree/commandbuilder.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h
index cd627227a..c2b438deb 100644
--- a/src/modules/m_spanningtree/commandbuilder.h
+++ b/src/modules/m_spanningtree/commandbuilder.h
@@ -68,6 +68,13 @@ class CmdBuilder
return *this;
}
+ template <typename T>
+ CmdBuilder& push_raw_int(T i)
+ {
+ content.append(ConvToStr(i));
+ return *this;
+ }
+
CmdBuilder& push(const std::string& s)
{
content.push_back(' ');