I'm using Visual Studio 2002 (Version 7.0.9466) with the DirectX SDK headers to work on Notepad2, as I would like to maintain Windows 2000 compatibility. With the latest C++ STL use changes from Hg, the build breaks with the following errors and warnings:
error C2039: 'data' : is not a member of 'std::vector<_Ty,_Ax>'
PlatWin.cxx: line 2098
ScintillaWin.cxx: lines 1773, 1782, 1785, 1806, 1808, 1811, 1811, 1813, 2565, 2577, 2595, 2611, 2751
warning C4312: 'reinterpret_cast/typecast' : conversion from 'X' to 'Y' of greater size
PlatWin.cxx: lines 50, 2211, 2769, 2783, 2791, 2794
ScintillaWin.cxx: lines 116, 1831
The release builds are created by the WDK 7600.16385.1 tools with the DirectX SDK headers, and the build breaks with the same errors, but does not produce the warnings.
I'd be deeply grateful if the use of std::vector::data() could be omitted.
--Florian