diff options
Diffstat (limited to 'Swiften/Base/Concat.h')
-rw-r--r-- | Swiften/Base/Concat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Base/Concat.h b/Swiften/Base/Concat.h index 97b04f2..1d158d5 100644 --- a/Swiften/Base/Concat.h +++ b/Swiften/Base/Concat.h @@ -1,14 +1,16 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <algorithm> + namespace Swift { template<typename C> C concat(const C& c1, const C& c2) { C result; result.resize(c1.size() + c2.size()); std::copy(c2.begin(), c2.end(), std::copy(c1.begin(), c1.end(), result.begin())); |