Skip to content

Commit a2dadb1

Browse files
magicly works, all of a sudden...
1 parent 8154aa7 commit a2dadb1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cpp4j/greater.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ public :
99

1010
bool operator ()(const T &left, const T &right){
1111
Less<T> less;
12-
// nicht kleiner && nicht gleich
1312
bool lesser = less(left, right);
1413
bool equal = !less(left, right) && !less(right,left);
15-
1614
return !lesser && !equal;
1715
}
1816

cpp4j/testTemplates.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,17 @@ int testTemplates(void)
8686
assert ( greaterInt(3,4) == 0 );
8787
assert ( greaterInt(3,3) == 0 );
8888

89+
Greater<string> greaterString;
90+
cout << "Hallo > Welt == " << greaterString("Hallo","Welt") << endl;
8991

90-
#if 0 // move this line down while your implementation proceeds...
9192
/////////////////////////////////////////
9293
// TEST PAIR ORDER
9394
MapToFirst< int, float, Less > lessPair;
9495
cout << i_f << " < " << i_f2 << " == " << lessPair(i_f, i_f2) << endl;
9596

97+
#if 0 // move this line down while your implementation proceeds...
98+
99+
96100
/////////////////////////////////////////
97101
// TEST TREE
98102

0 commit comments

Comments
 (0)