DescriptionChange ScopedPtr(Hash)Map to make qualified calls to ignore_result().
Currently, ignore_result() calls in ScopedPtr(Hash)Map are unqualified.
If the mapped_type is in a namespace containing an ignore_result()
function, ADL causes that function to be considered in overload
resolution. If the ignore_result() in that namespace is a function
template, both ignore_result() functions are equally ranked in overload
resolution, resulting in the ignore_result() call being ambiguous. This
change avoids this problem by making qualified calls to ignore_result()
in ScopedPtr(Hash)Map.
Committed: https://crrev.com/40d9ba69acc929515cd23196022edfd4b49ed9a0
Cr-Commit-Position: refs/heads/master@{#357298}
Patch Set 1 #
Total comments: 4
Patch Set 2 : fix whitespace #
Messages
Total messages: 10 (3 generated)
|