util: Workaround clang bug in IndentedStream implementation
Change-Id: I34771121e5193eae327d3052c2defe98295dd822
Refs: #2238
diff --git a/src/util/indented-stream.cpp b/src/util/indented-stream.cpp
index 04c04cd..590a7ce 100644
--- a/src/util/indented-stream.cpp
+++ b/src/util/indented-stream.cpp
@@ -25,6 +25,7 @@
#include <boost/range/iterator_range.hpp>
#include <boost/algorithm/string/split.hpp>
+#include <boost/algorithm/string/classification.hpp>
namespace ndn {
namespace util {
@@ -53,7 +54,7 @@
const std::string& output = str();
std::vector<StringView> splitOutput;
- boost::split(splitOutput, output, [] (char ch) { return ch == '\n'; });
+ boost::split(splitOutput, output, boost::is_any_of("\n"));
if (!splitOutput.empty() && splitOutput.back().empty()) {
splitOutput.pop_back();