Add MongoDB 3.4
[unleashed-userland.git] / components / database / mongodb-34 / patches / 02-src_mongo_shell_linenoise__utf8.h.patch
blobaae177d2a5d587e4bafcb9c586cb36623fedf0af
1 $NetBSD: patch-src_mongo_shell_linenoise__utf8.h,v 1.3 2016/02/12 03:37:24 ryoon Exp $
3 Use Boost swap instead of std. Fixes build on SunOS.
4 --- a/src/mongo/shell/linenoise_utf8.h.orig 2016-01-05 18:31:44.000000000 +0000
5 +++ b/src/mongo/shell/linenoise_utf8.h
6 @@ -27,6 +27,7 @@
7 * then also delete it in the license file.
8 */
10 +#include <boost/core/swap.hpp>
11 #include <algorithm>
12 #include <memory>
13 #include <string.h>
14 @@ -174,9 +175,9 @@
17 void swap(UtfStringMixin& other) {
18 - std::swap(_len, other._len);
19 - std::swap(_cap, other._cap);
20 - std::swap(_chars, other._chars);
21 + boost::swap(_len, other._len);
22 + boost::swap(_cap, other._cap);
23 + boost::swap(_chars, other._chars);
24 _str.swap(other._str);