If you try to use the example for fill_n.cpp, and add using namespace stdext; and change fill_n( v1.begin( ) +5, 5, 2); to checked_fill_n( v1.begin( ) +5, 5, 2);, this error shows at compile time. Looking into xutility code at line 3048 , this line:
_STD _Fill_n(_First, _Count, _Val, _STD _Iter_cat(_First), _STD _Checked_cat(_Dest)); may be rewritten as:
_STD _Fill_n(_First, _Count, _Val, _STD _Iter_cat(_First), _STD _Checked_cat(_First));
and the example will compile correctly.