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
7 * then also delete it in the license file.
10 +#include <boost/core/swap.hpp>
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);