C++ – Why MS Visual Studio 2008 has 2 copies of STL file

cstlvisual-studio-2008

This and this.

"c:\Program Files\Microsoft Visual Studio 9.0\VC\crt\src\sstream"

"c:\Program Files\Microsoft Visual Studio 9.0\VC\include\sstream"

And the files have small differences. Why 2 files ? Thank you.

Best Answer

I don't know why the files are different, but the one in the src directory is part of the runtime library source, and shouldn't be used by users of the library. The other file is the one included when you do #include <sstream>.