summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-06 10:49:22 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-04-06 10:49:22 (GMT)
commit40f74371af114d2494136e490ab1d0ce91076484 (patch)
tree333fe58ee1e71b6dfc944777be6b1735a8009ee0
parent496829bfd8d6b1293fbb7474d40f3c66da2f57e7 (diff)
downloadlibkolabxml-40f74371af114d2494136e490ab1d0ce91076484.tar.gz
added warning for the << operator, as it doesn't modify the vector
-rw-r--r--src/kolabcontainers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kolabcontainers.h b/src/kolabcontainers.h
index 7ed1fab..256c3cd 100644
--- a/src/kolabcontainers.h
+++ b/src/kolabcontainers.h
@@ -378,6 +378,7 @@ struct CustomProperty {
std::string value;
};
+//WARNING this function copies the vector and does not modify it
template <typename T>
std::vector<T> operator<< ( std::vector<T> v, const T &s)
{