Allow usage in multiple object files (#39)

This commit is contained in:
bibermann 2019-07-10 13:43:15 +02:00 committed by Arun Muralidharan
parent f6799fcc34
commit 785ff230a8

View File

@ -146,12 +146,13 @@ public:
namespace util namespace util
{ {
template <typename R> bool is_ready(std::shared_future<R> const &f) template <typename R>
inline bool is_ready(std::shared_future<R> const &f)
{ {
return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready; return f.wait_for(std::chrono::seconds(0)) == std::future_status::ready;
} }
void quote_argument(const std::wstring &argument, std::wstring &command_line, inline void quote_argument(const std::wstring &argument, std::wstring &command_line,
bool force) bool force)
{ {
// //