Article View: pl.comp.lang.c
Article #309709Re: futures, wielokrotne templaty, lambdy i standard c++17
From: Borneq
Date: Thu, 21 Jun 2018 15:48
Date: Thu, 21 Jun 2018 15:48
29 lines
1862 bytes
1862 bytes
Zobaczyłem czym się różnią wersje folly:
/usr/local/include/folly/futures/Future.h
na starej wersji:
template <typename F, typename R = futures::detail::callableResult<T, F>>
typename R::Return then(F&& func) {
return thenImplementation<F, R>(std::forward<F>(func), typename
R::Arg());
}
i nowa :
template <typename F, typename R = futures::detail::callableResult<T, F>>
typename R::Return then(F&& func) {
return this->template thenImplementation<F, R>(
std::forward<F>(func), typename R::Arg());
}
co oznacza "this->template" dla kodu, który używa tego szablonu?
nowe folly używa również:
/usr/local/include/folly/functional/Invoke.h
or /usr/include/c++/8/type_traits
/// std::invoke_result_t
template<typename _Fn, typename... _Args>
using invoke_result_t = typename invoke_result<_Fn, _Args...>::type;
Na czym mają polegać zmiany w kodzie?
Technical Details
Message-ID:
<pgghcg$bj9$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<pgenie$nce$1@node2.news.atman.pl> <pggcqu$7jl$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.lang.c Subject: Re: futures, wielokrotne templaty, lambdy i standard c++17 Date: Thu, 21 Jun 2018 17:48:34 +0200 Organization: ATMAN - ATM S.A. Lines: 29 Message-ID: <pgghcg$bj9$1@node2.news.atman.pl> References: <pgenie$nce$1@node2.news.atman.pl> <pggcqu$7jl$1@node2.news.atman.pl> NNTP-Posting-Host: public-gprs640547.centertel.pl Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1529596112 11881 5.184.45.100 (21 Jun 2018 15:48:32 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Thu, 21 Jun 2018 15:48:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 In-Reply-To: <pggcqu$7jl$1@node2.news.atman.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit