Compiles on MacOS X

This commit is contained in:
Sebastian Messmer 2015-11-28 17:06:54 +01:00
parent e66624b4bf
commit 76d042bdd9
2 changed files with 3 additions and 2 deletions

View File

@ -10,14 +10,14 @@
//TODO Test that this solves the problem (add test unit file that doesn't compile without)
#include "unique_ref.h"
#include <boost/optional/optional_io.hpp>
//gtest/boost::optional workaround for working with optional<unique_ref<T>>
namespace boost {
namespace cpputils {
template<typename T>
inline std::ostream& operator<<(std::ostream& out, const cpputils::unique_ref<T> &ref) {
out << ref.get();
return out;
}
}
#include <boost/optional/optional_io.hpp>
#endif

View File

@ -1,6 +1,7 @@
#include "subprocess.h"
#include <cstdio>
#include <stdexcept>
#include <sys/wait.h>
using std::string;