"The C++ Standard forbids containers of const elements "
"because allocator<const T> is ill-formed.");
The code looks for the definition in the C2535 vector, and then removes the const in the vector template .
Because it is used in the STL container template const
, it is forbidden in the C++11 standard! The old version of Visual Studio is not so strict, so it can generally be compiled