Skip to content

STL.natvis: move_iterator visualizer should use _Current, not current #4829

@StephanTLavavej

Description

@StephanTLavavej

STL/stl/inc/xutility

Lines 4149 to 4152 in ef1d621

_EXPORT_STD template <class _Iter>
class move_iterator : public _Move_iterator_category<_Iter> {
private:
_Iter _Current{};

STL/stl/debugger/STL.natvis

Lines 1522 to 1527 in ef1d621

<Type Name="std::move_iterator&lt;*&gt;">
<DisplayString>move_iterator {current}</DisplayString>
<Expand>
<Item Name="current">current</Item>
</Expand>
</Type>

And traditionally, we've used Name="[current]" to indicate that we're displaying a pretty name for an ugly data member.

Regression introduced by #1080 on 2020-07-27 in VS 2019 16.8.

Reported by @xiangfan-ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!visualizerHow the VS debugger displays STL types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions