Compiles on MacOS X
This commit is contained in:
parent
e66624b4bf
commit
76d042bdd9
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "subprocess.h"
|
||||
#include <cstdio>
|
||||
#include <stdexcept>
|
||||
#include <sys/wait.h>
|
||||
|
||||
using std::string;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user