diff options
author | Josh Blum <josh@joshknows.com> | 2010-08-12 18:17:48 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-08-12 18:17:48 +0000 |
commit | a1d768d540d4f78ddf634033892459a5f1d3847f (patch) | |
tree | 66b60a3031b13fa23389b6ce2cf090098d232316 /host/lib/utils/warning.cpp | |
parent | 68a65581db6455bfd4652576eeb6795e3c1ca68b (diff) | |
parent | 805d4a0cff00fb4e0071bb300436bb7eefb8fb16 (diff) | |
download | uhd-a1d768d540d4f78ddf634033892459a5f1d3847f.tar.gz uhd-a1d768d540d4f78ddf634033892459a5f1d3847f.tar.bz2 uhd-a1d768d540d4f78ddf634033892459a5f1d3847f.zip |
Merge branch 'split_string' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge
Diffstat (limited to 'host/lib/utils/warning.cpp')
-rw-r--r-- | host/lib/utils/warning.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/utils/warning.cpp b/host/lib/utils/warning.cpp index ae4d4c7aa..8a7d35a23 100644 --- a/host/lib/utils/warning.cpp +++ b/host/lib/utils/warning.cpp @@ -16,7 +16,7 @@ // #include <uhd/utils/warning.hpp> -#include <boost/algorithm/string.hpp> +#include <uhd/utils/algorithm.hpp> #include <boost/foreach.hpp> #include <iostream> #include <vector> @@ -24,13 +24,9 @@ using namespace uhd; void uhd::print_warning(const std::string &msg){ - //extract the message lines - std::vector<std::string> lines; - boost::split(lines, msg, boost::is_any_of("\n")); - //print the warning message std::cerr << std::endl << "Warning:" << std::endl; - BOOST_FOREACH(const std::string &line, lines){ + BOOST_FOREACH(const std::string &line, std::split_string(msg, "\n")){ std::cerr << " " << line << std::endl; } } |