This warning is apparently not causing a problem but I like to
understand the warnings so I can look for potential problems. Not
quite sure why this one occurs.
Thanks,
jh
c:\program files\microsoft visual studio\vc98\include\utility(21) :
warning C4786: 'std::pair<std::deque<unsigned
char,std::allocator<unsigned char>
>::const_iterator,std::deque<unsigned char,std::allocator<unsigned
char> >::const_iterator>::pair<st
d::deque<unsigned char,std::allocator<unsigned char>
>::const_iterator,std::deque<unsigned char,std::allocator<unsigned
char> >::const_iterator>' : identifier was truncated to '255'
characters in the debug information
#include "dvGPS.h"
int getSentence(const char cStart, const char cStop, char* sentence)
{
char c;
deque<char> charDeque(0);
while((c = getByte()) != cStart)
{
//Do nothing but toss it.
cout << c << endl;
}
cout << "//Collect characters." << endl;
do
{
charDeque.push_back(c);
cout << c << endl;
cout << hex << (unsigned short)c << endl;
}while((c = getByte()) != cStop);
charDeque.push_back(c);
charDeque.push_back('\0');
copy(charDeque.begin(), charDeque.end(), sentence);
return charDeque.size() -1;
}