[patch] Fix pointer comparison
Jules Bergmann
jules at codesourcery.com
Mon Jun 16 20:31:10 UTC 2008
The pointer equality check for an in-place transpose will cause a
compilation error for assignments between different value types (such as
in view.cpp).
This patch fixes that by introducing an 'is_same_ptr' that can compare
pointers of different types.
It also includes a simple unit-test for in-place transpose.
Ok to apply?
-- Jules
--
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trans.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20080616/8bba74e4/attachment.ksh>
More information about the vsipl++
mailing list