From f542c5ebb8068ccd4f9176684eb62183afbe7e5c Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 6 May 2010 20:28:36 +0000 Subject: Integrated changes from unicode branch to trunk git-svn-id: http://pugixml.googlecode.com/svn/trunk@383 99668b35-9821-0410-8761-19e4c4f06640 --- tests/helpers.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/helpers.hpp') diff --git a/tests/helpers.hpp b/tests/helpers.hpp index e7ed873..6648806 100644 --- a/tests/helpers.hpp +++ b/tests/helpers.hpp @@ -49,7 +49,12 @@ template static void generic_rel_ops_test(T obj1, T obj2) T null = T(); // obj1 < obj2 (we use operator<, but there is no other choice - if (obj1 > obj2) std::swap(obj1, obj2); + if (obj1 > obj2) + { + T temp = obj1; + obj1 = obj2; + obj2 = temp; + } // operator< CHECK(null < obj1); -- cgit v1.2.3