> -----Original Message-----
> From: Eric Lemings
> Sent: Thursday, July 17, 2008 8:47 AM
> To: '[email protected]'
> Subject: RE: structure of tuple tests ([Fwd: Re: svn commit:
> r675044 - in /stdcxx/branches/4.3.x: include/rw/_tuple.h
> include/tuple tests/utilities/20.tuple.cnstr.cpp
> tests/utilities/20.tuple.creation.cpp
> tests/utilities/20.tuple.h tests/utilities/20.tuple.helpers
>
>
...
> > In 20.tuple.cnstr.cpp you might also be able to get rid of
> > <cstring> by using rw_strncmp(). You should also be able
> > to use rw_equal() instead of defining a special helper (if
> > rw_equal() doesn't do something we need to do in the tuple
> > tests maybe we could extend it?)
>
> Was not aware of those. I'll try to reuse them.
I believe this is a safe enhancement to rw_equal() but I just wanna make
sure:
template <class T, class U = T>
inline int rw_equal (T x, U y)
{
return x == y;
}
This would allow comparison of different but compatible types which is
needed for heterogenous tuple types. Anyone see a problem with it?
Brad.