Programming Tips - MSVC++: Can't dereference value-initialized vector iterator

Date: 2022nov29 Product: MSVC++ Language: C/C++ Q. MSVC++: Can't dereference value-initialized vector iterator A. I got this assert when some old code was trying to do:
*a.begin();
That used to work but now as of C++11 we have the less kludgy:
*a.data();
The spec says when it size() == 0 data() may or may not return a null pointer.