Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ boost::filesystem::path find_working_directory(const std::string &cmd, bp::envir

BOOST_LOG(debug) << "Parsed executable ["sv << parts.at(0) << "] from command ["sv << cmd << ']';

// If the cmd path is not a complete path, resolve it using our PATH variable
// If the cmd path is not an absolute path, resolve it using our PATH variable
boost::filesystem::path cmd_path(parts.at(0));
if(!cmd_path.is_complete()) {
if(!cmd_path.is_absolute()) {
cmd_path = boost::process::search_path(parts.at(0));
if(cmd_path.empty()) {
BOOST_LOG(error) << "Unable to find executable ["sv << parts.at(0) << "]. Is it in your PATH?"sv;
Expand Down
13 changes: 7 additions & 6 deletions src/round_robin.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

namespace round_robin_util {
template<class V, class T>
class it_wrap_t : public std::iterator<std::random_access_iterator_tag, V> {
class it_wrap_t {
public:
typedef T iterator;
typedef typename std::iterator<std::random_access_iterator_tag, V>::value_type class_t;

typedef class_t &reference;
typedef class_t *pointer;
using iterator_category = std::random_access_iterator_tag;
using value_type = V;
using difference_type = V;
using pointer = V *;
using reference = V &;

typedef T iterator;
typedef std::ptrdiff_t diff_t;

iterator operator+=(diff_t step) {
Expand Down