Fix overload resolution: try &el overload with preference.

This commit is contained in:
Axel Naumann 2016-10-14 02:19:34 +02:00 committed by sftnight
parent 5c300bfdd4
commit dd4f7fafe8

View File

@ -92,7 +92,7 @@ namespace cling {
// As above, but without ability to take address of elements.
template<typename CollectionType>
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<typename CollectionType>
auto printValue_impl(const CollectionType *obj, int, ...)
auto printValue_impl(const CollectionType *obj, long)
-> decltype(
++(obj->begin()), obj->end(),
*(obj->begin()),