diff options
-rw-r--r-- | src/modules/m_spanningtree.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index f022d48c6..c40e99b40 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -468,6 +468,13 @@ class Link ConfigReader *Conf; std::vector<Link> LinkBlocks; +template<typename T> inline string ConvToStr(const T &in) +{ + stringstream tmp; + if (!(tmp << in)) return string(); + return tmp.str(); +} + /* Yay for fast searches! * This is hundreds of times faster than recursion * or even scanning a linked list, especially when |