]> www.infradead.org Git - users/hch/fsqual.git/commitdiff
Allow building with -std=c++11
authorAvi Kivity <avi@scylladb.com>
Tue, 9 Feb 2016 08:35:25 +0000 (10:35 +0200)
committerAvi Kivity <avi@scylladb.com>
Tue, 9 Feb 2016 08:35:25 +0000 (10:35 +0200)
fsqual.cc

index 3bd329217a72a2d2ea0ded1aad41113faffd07fb..44c1b07370083d1a4f4e96120d8166640c4dbb52 100644 (file)
--- a/fsqual.cc
+++ b/fsqual.cc
 #include <iostream>
 #include <unistd.h>
 #include <cstdlib>
+#include <type_traits>
 
 template <typename Counter, typename Func>
-auto
+typename std::result_of<Func()>::type
 with_ctxsw_counting(Counter& counter, Func&& func) {
     struct count_guard {
         Counter& counter;