Commit 33edf5ac authored by Marc Vef's avatar Marc Vef
Browse files

Merge branch 'remove_boost_algorithm' into 'master'

remove boost algorithm dependency

See merge request zdvresearch_bsc/adafs!105
parents d8e460c4 c59781c8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@
#include <spdlog/sinks/basic_file_sink.h>
#include <exception>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <list>

using namespace std;

@@ -12,7 +13,7 @@ spdlog::level::level_enum get_spdlog_level(string level_str) {
    auto level = strtoul(level_str.c_str(), &parse_end, 10);
    if (parse_end != (level_str.c_str() + level_str.size())) {
        // no conversion could be performed. Must be a string then
        boost::algorithm::to_lower(level_str);
        ::transform(level_str.begin(), level_str.end(), level_str.begin(), ::tolower);
        if (level_str == "off"s)
            return spdlog::level::off;
        else if (level_str == "critical"s)
+0 −1
Original line number Diff line number Diff line

#include <preload/preload_util.hpp>
#include <global/rpc/rpc_utils.hpp>
#include <global/rpc/distributor.hpp>