Fix overload resolution: try &el overload with preference.
This commit is contained in:
parent
5c300bfdd4
commit
dd4f7fafe8
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user