[Quickfix-developers] CharField problem (VC6)
Brought to you by:
orenmnero
From: Alexey Z. <ale...@in...> - 2005-03-02 14:48:48
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000066"> Hello,<br> <br> I've got the following problem:<br> <br> I put a char field (Side) initiated with '\0' by mistake and got FIX message truncated.<br> I think in this case QF has to check the value in CharConvertor::convert for 0.<br> <br> struct CharConvertor<br> {<br> static std::string convert( char value )<br> {<br> return std::string( 1, value );<br> }<br> .........<br> <br> The following string is not empty and has size 1: <br> std::string s( 1, '\0');<br> <br> <pre class="moz-signature" cols="60">-- Regards, Alexey </pre> </body> </html> |