Hi.
I posted two threads earlier about STL and cin, cout, ifstream and ofstream. I implemented code based on inputs from other members.
Here is the code:
void ScanList::scanData(ifstream &source, ofstream &output)
{
string oneLine;
std::deque dataList;
while(veri)
{
std::getline(source, oneLine);
if (oneLine[0] == NULL || !isdigit(oneLine[0]))
{
if (source.eof())
{
veri = false;
continue;
}
else
continue;
}
else
dataList.push_back(oneLine);
if (source.eof())
veri = false;
}
std::unique(dataList.begin(), dataList.end());
/*
std::deque::iterator beginITER = dataList.begin();
while (beginITER != dataList.end())
{
output << *beginITER;
beginITER++;
}
*/
std:stream_iterator outFile(output, "\n");
std::copy(dataList.begin(), dataList.end(), outFile);
dataList.clear();
}
VC++ gave these four warnings:
Compiling...mScanList.cppD:\C++\mScanList.cpp(81) : warning C4786: 'std::reverse_iterator,std::allocator >,std::allocator,std::allocator > > >::const_iterator,std::basic_string,std::allocat or >,std::basic_string,std::allocator > const &,std::basic_string,std::allocator > const *,int>' : identifier was truncated to '255' characters in the debug informationD:\C++\mScanList.cpp(81) : warning C4786: 'std::reverse_iterator,std::allocator >,std::allocator,std::allocator > > >::iterator,std::basic_string,std::allocator >,std::basic_string,std::allocator > &,std::basic_string,std::allocator > *,int>' : identifier was truncated to '255' characters in the debug informationc:\program files\microsoft visual studio\vc98\include\deque(191) : warning C4786: 'std::deque,std::allocator >,std::allocator,std::allocator > > >::deque,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug informationc:\program files\microsoft visual studio\vc98\include\deque(208) : warning C4786: 'std::deque,std::allocator >,std::allocator,std::allocator > > >::~deque,std::allocator >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug informationmScanList.obj - 0 error(s), 4 warning(s)
VC++ outputs those warnings no even when I used the second technique which the compile ignored because of /* and */.
Does anyone know what it is talking about and how to elimate the warnings?
Thanks,
Kuphryn