From 8c9577ffe90319376fdd4265340220555f036ccb Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 8 Jul 2006 07:10:13 +0000 Subject: [PATCH] Unneeded. Vectors are a type of EqualityComparable. http://www.sgi.com/tech/stl/EqualityComparable.html If a particular implementation of the stl isn't c++98 compliant, a global template bool operator==( const vector &a, const vector &b) can be written (and operator!= of course). --- stepmania/src/RageUtil.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 857eec2d1f..79f5ec0dad 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -505,21 +505,6 @@ void FileWrite( RageFileBasic& f, float fWrite ); bool FileCopy( const RString &sSrcFile, const RString &sDstFile ); bool FileCopy( RageFileBasic &in, RageFileBasic &out, RString &sError, bool *bReadError = NULL ); -template -bool VectorsAreEqual( const T &a, const T &b ) -{ - if( a.size() != b.size() ) - return false; - - for( unsigned i=0; i void GetAsNotInBs( const vector &as, const vector &bs, vector &difference ) {