S
Somesh
#include<map>
#include<iostream>
#include<string>
using namespace std;
int main()
{
map <string,int> test;
test["hello"]=5;
test.insert(map<string,int>::value_type("bye",10));
typedef map<string,int>::const_iterator CI;
for(CI p=test.begin();p!=test.end();++p)
cout<<p->first<<" "<<p->second<<endl;
return 0;
}
The above code gives around 100 warnings on compiling in Microsoft
Visual C++ compiler.Most of which don't make any sense to me.If any
one can throw some light on the warnings.I am also posting some sample
warnings.I have tried using vector container also but that doesn't
give any error.It's only when i use map that these warnings arise.
/****Warnings*****/
c:\program files\microsoft visual studio\vc98\include\xtree(120) :
truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
Folder\Cpp1.cpp(11) : see reference to class template instantiation
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
Folder\Cpp1.cpp(11) : see reference to class template instantiation
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
Folder\Cpp1.cpp(11) : see reference to class template instantiation
was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
Folder\Cpp1.cpp(11) : see reference to class template instantiation
/****Warnings continued*******/
Thanks
#include<iostream>
#include<string>
using namespace std;
int main()
{
map <string,int> test;
test["hello"]=5;
test.insert(map<string,int>::value_type("bye",10));
typedef map<string,int>::const_iterator CI;
for(CI p=test.begin();p!=test.end();++p)
cout<<p->first<<" "<<p->second<<endl;
return 0;
}
The above code gives around 100 warnings on compiling in Microsoft
Visual C++ compiler.Most of which don't make any sense to me.If any
one can throw some light on the warnings.I am also posting some sample
warnings.I have tried using vector container also but that doesn't
give any error.It's only when i use map that these warnings arise.
/****Warnings*****/
c:\program files\microsoft visual studio\vc98\include\xtree(120) :
warning C4786: 'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<char>,std::allocator<char>
const ,
r>,std::allocator<char> > >,std::allocator<int> >' : identifier was::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<
C:\Documents and Settings\Somesh Chandra\Desktop\Assembler\Newsic_string said:,std::allocator<int> >' being compiled
Folder\Cpp1.cpp(11) : see reference to class template instantiation
'std::map said:,int,std::less<std::basic_string
c:\program files\microsoft visual studio\vc98\include\xtree(120) :,std::allocator<int> >' being compiled
warning C4786: 'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<char>,std::allocator<char>
const ,
r>,std::allocator<char> > >,std::allocator<int> >::const_iterator' :::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<
C:\Documents and Settings\Somesh Chandra\Desktop\Assembler\Newsic_string said:,std::allocator<int> >' being compiled
Folder\Cpp1.cpp(11) : see reference to class template instantiation
'std::map said:,int,std::less<std::basic_string
c:\program files\microsoft visual studio\vc98\include\xtree(120) :,std::allocator<int> >' being compiled
warning C4786: 'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<char>,std::allocator<char>
const ,
r>,std::allocator<char> > >,std::allocator<int> >::iterator' :::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<
C:\Documents and Settings\Somesh Chandra\Desktop\Assembler\Newsic_string said:,std::allocator<int> >' being compiled
Folder\Cpp1.cpp(11) : see reference to class template instantiation
'std::map said:,int,std::less<std::basic_string
c:\program files\microsoft visual studio\vc98\include\xtree(120) :,std::allocator<int> >' being compiled
warning C4786: 'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<char>,std::allocator<char>
const ,
r>,std::allocator<char> > >,std::allocator<int> >::_Node' : identifier::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\map(46)
: see reference to class template instantiation
'std::_Tree said:,std:air<std::basic_string<char,std::char_traits<
C:\Documents and Settings\Somesh Chandra\Desktop\Assembler\Newsic_string said:,std::allocator<int> >' being compiled
Folder\Cpp1.cpp(11) : see reference to class template instantiation
'std::map said:,int,std::less<std::basic_string
,std::allocator<int> >' being compiled
/****Warnings continued*******/
Thanks