Genode::retry(): fix compile error with GCC 6

Fixes #2376
This commit is contained in:
Christian Prochaska 2017-02-09 15:31:30 +01:00 committed by Christian Helmuth
parent d23dd0cdb4
commit bf83c07923

View File

@ -38,7 +38,7 @@ namespace Genode {
*/ */
template <typename EXC, typename FUNC, typename HANDLER> template <typename EXC, typename FUNC, typename HANDLER>
auto Genode::retry(FUNC func, HANDLER handler, auto Genode::retry(FUNC func, HANDLER handler,
unsigned attempts = ~0U) -> decltype(func()) unsigned attempts) -> decltype(func())
{ {
for (unsigned i = 0; attempts == ~0U || i < attempts; i++) for (unsigned i = 0; attempts == ~0U || i < attempts; i++)
try { return func(); } try { return func(); }