[vsipl++] Problem compiling VSIPL++ Matrix code
Stefan Seefeld
stefan at codesourcery.com
Thu May 8 13:09:02 UTC 2008
Edward,
there is a small hard-to-see bug in this code that I ran into accidentally:
Rutledge, Edward wrote:
> int main(void)
>
> {
>
> vsip::vsipl prog();
While you probably want to create a 'vsip::vsipl' object here, what this
actually does is declare a function returning 'vsip::vsipl' and taking
no argument. (Remember the C++ rule: whenever it can be interpreted as a
declaration, it is one.)
This may lead to strange effects when you expect the library to be
initialized while it actually isn't.
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list