@@ -46,21 +46,3 @@ namespace resumef | |||
} | |||
}; | |||
} | |||
#ifndef DOXYGEN_SKIP_PROPERTY | |||
namespace std { | |||
namespace experimental { | |||
/*If the coroutine is defined as task<float> foo(std::string x, bool flag);, | |||
then its Promise type is std::coroutine_traits<task<float>, std::string, bool>::promise_type. | |||
If the coroutine is a non-static member function, such as task<void> my_class::method1(int x) const;, | |||
its Promise type is std::coroutine_traits<task<void>, const my_class&, int>::promise_type. | |||
*/ | |||
template <typename _Ty, typename... Args> | |||
struct coroutine_traits<resumef::future_t<_Ty>, Args...> | |||
{ | |||
typedef resumef::promise_t<_Ty> promise_type; | |||
}; | |||
} | |||
} // namespace std::experimental | |||
#endif //DOXYGEN_SKIP_PROPERTY |
@@ -321,18 +321,3 @@ namespace resumef | |||
#pragma pop_macro("new") | |||
#pragma pack(pop) | |||
#ifndef DOXYGEN_SKIP_PROPERTY | |||
namespace std { | |||
namespace experimental { | |||
template <typename _Ty, typename _Alloc, typename... Args> | |||
struct coroutine_traits<resumef::generator_t<_Ty, _Alloc>, Args...> | |||
{ | |||
typedef typename resumef::generator_t<_Ty, _Alloc>::promise_type promise_type; | |||
}; | |||
} | |||
} // namespace std::experimental | |||
#endif //DOXYGEN_SKIP_PROPERTY |
@@ -154,7 +154,7 @@ | |||
<PreprocessorDefinitions>_WIN32_WINNT=0x0601;_CONSOLE;ASIO_STANDALONE;_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING=1;ASIO_DISABLE_CONCEPTS=1;RESUMEF_ENABLE_MULT_SCHEDULER=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||
<AdditionalIncludeDirectories>..\librf;..\..\asio\asio\include;..\..\asio-1.10.6\include;..\modern_cb;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |||
<AdditionalOptions>/await</AdditionalOptions> | |||
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed> | |||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> | |||
<StringPooling>true</StringPooling> | |||
<LanguageStandard>stdcpplatest</LanguageStandard> | |||
<MultiProcessorCompilation>true</MultiProcessorCompilation> |