summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Util.cpp')
-rw-r--r--cpp/src/IceGrid/Util.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/Util.cpp b/cpp/src/IceGrid/Util.cpp
index 31e64f03cb9..3d79d8fd37f 100644
--- a/cpp/src/IceGrid/Util.cpp
+++ b/cpp/src/IceGrid/Util.cpp
@@ -15,6 +15,22 @@
#include <fstream>
using namespace std;
-using namespace Ice;
using namespace IceGrid;
+string
+IceGrid::toString(const vector<string>& v)
+{
+ ostringstream os;
+ Ice::StringSeq::const_iterator p = v.begin();
+ while(p != v.end())
+ {
+ os << *p;
+ ++p;
+ if(p != v.end())
+ {
+ os << " ";
+ }
+ }
+ return os.str();
+}
+