Skip to content

Remove BOOST dependency. #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions include/pfasst/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#ifndef NDEBUG
#include <iostream> // used by pfasst::log::test_logging_levels()
#endif
#include <algorithm>
#include <string>
using namespace std;

Expand All @@ -34,8 +35,6 @@ using namespace std;
#include <mpi.h>
#endif

#include <boost/algorithm/string.hpp>

#include "pfasst/config.hpp"


Expand Down Expand Up @@ -382,10 +381,7 @@ namespace pfasst

const size_t id_length = id.size();
string id2print = id.substr(0, LOGGER_ID_LENGTH);
boost::to_upper(id2print);
if (initialized) {
ML_CLOG(DEBUG, "default", "initializing custom logger '" << id << "' as '" << id2print << "'");
}
transform(id2print.begin(), id2print.end(), id2print.begin(), ::toupper);
if (id_length < LOGGER_ID_LENGTH) {
id2print.append(LOGGER_ID_LENGTH - id_length, ' ');
}
Expand Down