From dd4f7fafe871244b9fa292f77d9029f45cee4be8 Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Fri, 14 Oct 2016 02:19:34 +0200 Subject: [PATCH] Fix overload resolution: try &el overload with preference. --- include/cling/Interpreter/RuntimePrintValue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cling/Interpreter/RuntimePrintValue.h b/include/cling/Interpreter/RuntimePrintValue.h index a41c81dc..7e775e5c 100644 --- a/include/cling/Interpreter/RuntimePrintValue.h +++ b/include/cling/Interpreter/RuntimePrintValue.h @@ -92,7 +92,7 @@ namespace cling { // As above, but without ability to take address of elements. template - auto printValue_impl(const CollectionType *obj, int, ...) + auto printValue_impl(const CollectionType *obj, long) -> decltype( ++(obj->begin()), obj->end(), *(obj->begin()), @@ -174,7 +174,7 @@ namespace cling { // As above, but without ability to take address of elements. template - auto printValue_impl(const CollectionType *obj, int, ...) + auto printValue_impl(const CollectionType *obj, long) -> decltype( ++(obj->begin()), obj->end(), *(obj->begin()),