diff options
Diffstat (limited to 'deps/v8/src/utils/ostreams.h')
-rw-r--r-- | deps/v8/src/utils/ostreams.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/v8/src/utils/ostreams.h b/deps/v8/src/utils/ostreams.h index 899c85fd94..2dfedb5fd9 100644 --- a/deps/v8/src/utils/ostreams.h +++ b/deps/v8/src/utils/ostreams.h @@ -8,7 +8,7 @@ #include <cstddef> #include <cstdio> #include <cstring> -#include <ostream> // NOLINT +#include <ostream> #include <streambuf> #include "include/v8config.h" @@ -158,10 +158,10 @@ struct PrintIteratorRange { // Print any collection which can be iterated via std::begin and std::end. // {Iterator} is the common type of {std::begin} and {std::end} called on a // {const T&}. This function is only instantiable if that type exists. -template <typename T, typename Iterator = typename std::common_type< - decltype(std::begin(std::declval<const T&>())), - decltype(std::end(std::declval<const T&>()))>::type> -PrintIteratorRange<Iterator> PrintCollection(const T& collection) { +template <typename T> +auto PrintCollection(const T& collection) -> PrintIteratorRange< + typename std::common_type<decltype(std::begin(collection)), + decltype(std::end(collection))>::type> { return {std::begin(collection), std::end(collection)}; } |