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)
|
//TODO Test that this solves the problem (add test unit file that doesn't compile without)
|
||||||
|
|
||||||
#include "unique_ref.h"
|
#include "unique_ref.h"
|
||||||
#include <boost/optional/optional_io.hpp>
|
|
||||||
//gtest/boost::optional workaround for working with optional<unique_ref<T>>
|
//gtest/boost::optional workaround for working with optional<unique_ref<T>>
|
||||||
namespace boost {
|
namespace cpputils {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline std::ostream& operator<<(std::ostream& out, const cpputils::unique_ref<T> &ref) {
|
inline std::ostream& operator<<(std::ostream& out, const cpputils::unique_ref<T> &ref) {
|
||||||
out << ref.get();
|
out << ref.get();
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#include <boost/optional/optional_io.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "subprocess.h"
|
#include "subprocess.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user