We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38bf3f3 commit ece8108Copy full SHA for ece8108
Release/include/cpprest/astreambuf.h
@@ -26,13 +26,13 @@ namespace Concurrency
26
{
27
namespace details
28
29
- template<bool B=true>
30
- pplx::task<bool> _do_while(std::function<pplx::task<bool>(void)> func)
+ template<class F, class T = bool>
+ pplx::task<T> _do_while(F func)
31
32
- pplx::task<bool> first = func();
33
- return first.then([=](bool guard) -> pplx::task<bool> {
+ pplx::task<T> first = func();
+ return first.then([=](bool guard) -> pplx::task<T> {
34
if (guard)
35
- return Concurrency::details::_do_while<B>(func);
+ return Concurrency::details::_do_while<F,T>(func);
36
else
37
return first;
38
});
@@ -1200,3 +1200,4 @@ namespace streams
1200
};
1201
1202
}}
1203
+
0 commit comments