|
@@ -99,23 +99,23 @@ void DoTest(bool dkFirst, Rand&& r)
|
99
|
99
|
{
|
100
|
100
|
auto result1 = testDK(val1, MAX_SIZE);
|
101
|
101
|
auto result2 = testSTL(val2, MAX_SIZE);
|
102
|
|
- if (result1.Value<0>().Compare(result2.Value<0>()))
|
103
|
|
- DKLogE("Hash Compare: %d (ERROR)", result1.Value<0>().Compare(result2.Value<0>()));
|
|
102
|
+ if (result1.template Value<0>().Compare(result2.template Value<0>()))
|
|
103
|
+ DKLogE("Hash Compare: %d (ERROR)", result1.template Value<0>().Compare(result2.template Value<0>()));
|
104
|
104
|
else
|
105
|
105
|
DKLogI("Hash compare: %d (time: %f)",
|
106
|
|
- result1.Value<0>().Compare(result2.Value<0>()),
|
107
|
|
- result1.Value<1>() - result2.Value<1>());
|
|
106
|
+ result1.template Value<0>().Compare(result2.template Value<0>()),
|
|
107
|
+ result1.template Value<1>() - result2.template Value<1>());
|
108
|
108
|
}
|
109
|
109
|
else
|
110
|
110
|
{
|
111
|
111
|
auto result1 = testSTL(val1, MAX_SIZE);
|
112
|
112
|
auto result2 = testDK(val2, MAX_SIZE);
|
113
|
|
- if (result1.Value<0>().Compare(result2.Value<0>()))
|
114
|
|
- DKLogE("Hash Compare: %d (ERROR)", result1.Value<0>().Compare(result2.Value<0>()));
|
|
113
|
+ if (result1.template Value<0>().Compare(result2.template Value<0>()))
|
|
114
|
+ DKLogE("Hash Compare: %d (ERROR)", result1.template Value<0>().Compare(result2.template Value<0>()));
|
115
|
115
|
else
|
116
|
116
|
DKLogI("Hash compare: %d (time: %f)",
|
117
|
|
- result1.Value<0>().Compare(result2.Value<0>()),
|
118
|
|
- result1.Value<1>() - result2.Value<1>());
|
|
117
|
+ result1.template Value<0>().Compare(result2.template Value<0>()),
|
|
118
|
+ result1.template Value<1>() - result2.template Value<1>());
|
119
|
119
|
}
|
120
|
120
|
|
121
|
121
|
delete[] val1;
|