uppsrc_Core_CoWork.diff

Proposed patch for uppsrc/Core/CoWork.h (since 11438 revision) - Sender Ghost, 11/08/2017 12:06 AM

Download (744 Bytes)

View differences:

CoWork.h (working copy)
155 155
	~AsyncWork()                                    { if(imp) imp->co.Cancel(); }
156 156
};
157 157

  
158
#if !defined(__clang__) || 1000 * __clang_major__ + __clang_minor__ > 3004
158
#if !defined(__clang__) || 1000 * __clang_major__ + __clang_minor__ >= 3004
159
#if defined(__clang__) && defined(_LIBCPP_STD_VER) && _LIBCPP_STD_VER <= 11
160
#error The C++14 capable compiler and library required. Try to compile with using -std=c++14 or -std=c++1y (for Clang 3.4 and earlier).
161
#endif
159 162

  
160 163
template< class Function, class... Args>
161 164
AsyncWork<std::result_of_t<std::decay_t<Function>(std::decay_t<Args>...)>>