[vsipl++] PATCH: restrict vsip::operator! to view types

Mark Mitchell mark at codesourcery.com
Fri Nov 11 17:39:53 UTC 2005


Stefan Seefeld wrote:
> As the subject-line says, the attached patch uses sfinae
> to restrict the unary operators '!' and '~' to operate
> on view types only.
> The patch doesn't seem to introduce regressions for g++ 3.4.2,
> and makes a number of tests compile with ghs.

That's a nice solution; it will probably avoid other cases that might
confuse us or users as well!

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the vsipl++ mailing list