Circumvents a build issue under FreeBSD 11 which appears to
dislike std::to_string.
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class IntToString {
public:
std::string operator()(const testing::TestParamInfo<size_t>& n) {
- return std::to_string(n.param);
+ std::ostringstream ss;
+ ss << static_cast<size_t>(n.param);
+ return (ss.str());
}
};
-// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
class IntToString {
public:
std::string operator()(const testing::TestParamInfo<size_t>& n) {
- return to_string(n.param);
+ std::ostringstream ss;
+ ss << static_cast<size_t>(n.param);
+ return (ss.str());
}
};