This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Question about valarray.resize() implementation.
- To: <gcc-help at gcc dot gnu dot org>
- Subject: Question about valarray.resize() implementation.
- From: Liguo Song <liguo at nlog dot phy dot vanderbilt dot edu>
- Date: Thu, 2 Aug 2001 22:40:07 -0500 (CDT)
A question about valarray.resize() implementation.
In VC++6.0 from Microsoft, valarray.resize() will keep the original content of
the vallarray. But, in gcc, the same operation would reinitialize the content of
valarray. The former behavior is somewhat more convenient for a problem I'm
working no.
So, what is the reason for gcc's behavior? Such as performance?
Thanks for your comment.
Liguo (Leo)