<br><tt><font size=2>&gt; John.X.Foster@nab.com.au wrote:<br>
&gt; &gt; I have come across a bug associated with lexical_cast and regex
(though <br>
&gt; &gt; the culprit may well be the Visual C++ compiler). I have stripped
the code <br>
&gt; &gt; to the bare essentials. This worked OK under VC++ 8 (2005), but
gives an <br>
&gt; &gt; access violation under VC++ 9 (2008). This occurs with both boost
1.39 and <br>
&gt; &gt; 1.42. <br>
&gt; &gt;<br>
&gt; &gt; Simplified code follows:<br>
&gt; &gt;<br>
&gt; &gt; #define _SECURE_SCL 0<br>
&gt; &gt; #define _HAS_ITERATOR_DEBUGGING 0<br>
&gt; &gt; &nbsp; <br>
&gt; <br>
&gt; These #defines are probably mismatched between the regex<br>
&gt; library and your code.<br>
</font></tt><font size=2 face="sans-serif"><br>
Thanks for your suggestion, &nbsp;but this is not the case. All the code
has been built with these flags. Please see my follow-up post - I now believe
ostringstream is the problem, and I have colleagues who have experienced
similar problems with that class. There is also some internet correspondence
on the topic.</font>
<br><font size=2 face="sans-serif">&nbsp;</font>
<br><font size=2 face="sans-serif">John</font>
<table width=100%>
<tr>
<td width=100%><font size=2 face="Arial"><b>John Foster</b></font>
<br><a href=http://en.wikipedia.org/wiki/Qantassaurus><img src=cid:_2_07BF865007BF83080019ED4FCA257703></a>
<br><font size=1 face="Arial">Senior Quantitative Credit Developer</font>
<br><font size=1 face="Arial">Model Development, Group Credit Portfolio
&amp; Models</font>
<br><font size=1 face="Arial">National Australia Bank</font>
<br>
<br><font size=1 face="Arial">Level 15, 500 Bourke St, Melbourne VIC 3000</font>
<br><font size=1 face="Arial">Tel: +61 (0)3 8641 5228</font><font size=3 face="Arial">
</font>
<br><font size=1 face="Arial">Email: &nbsp;</font><a href=mailto:John.X.Foster@nab.com.au><font size=1 color=blue face="Arial"><u>John.X.Foster@nab.com.au</u></font></a><font size=1 face="Arial">
</font></table>
<br>
<br>
<br>

<p>This e-mail is sent by or on behalf of the named sender identified above.<br />
If:</p>

<p>(a) you do not wish to receive any e-mail marketing material from this
person in the future, please forward the contents of this email to <a
href="mailto:unsubscribe@nab.com.au">unsubscribe@nab.com.au</a> with the word
"unsubscribe" in the subject box.</p>

<p>(b) you wish to unsubscribe from all central e-mail marketing lists used by
our business, please forward the contents of this e-mail to <a
href="mailto:unsubscribeall@nab.com.au">unsubscribeall@nab.com.au</a> with the
message "unsubscribe from a ll central e-mail marketing lists" in the subject
box.</p>

<p>If you do not forward the contents of this e-mail with your unsubscription
then it may not be able to be implemented.</p>

<p>The information contained in this e-mail communication may be confidential.
You should only read, disclose, re-transmit, copy, distribute, act in reliance
on or commercialise the information if you are authorised to do so. If you are
not the intended recipient of this e-mail communication, please immediately
notify us by e-mail to 
<a href="mailto:postmaster@nab.com.au">postmaster@nab.com.au</a>, or reply by
e-mail direct t o the sender and then destroy any electronic and paper copy of
this message. Any views expressed in this e-mail communication are those of the
individual sender, except where the sender specifically states them to be the
views of a member of the National Australia Bank Group of companies. Any advice
contained in this e-mail has been prepared without taking into account your
objectives, financial situation or needs. Before acting on any advice in this
e-mail, National Australia Bank Limited recommends that you consider whether it
is appropriate for your circumstances. If this e-mail contains reference to any
financial products, the National recommends you consider the Product Disclosure
Statement (PDS) or other disclosure document before making any decisions
regarding any products.  The National Australia Bank Group of companies does
not represent, warrant or guarantee that the integrity of this communication
has been maintained nor that the communication is free of errors, virus or
interference.</p>


<br>