Permalink
Browse files

Work around a reported template type derivation problem in some versi…

…on of GCC.
  • Loading branch information...
1 parent a55b6f8 commit 55b7f2c1b43994c56b36ba072e7cbfa90a6b7e84 @jwatte jwatte committed Nov 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_Debug.cpp
View
@@ -12,15 +12,15 @@ void func()
assert_true(a.enabled());
assert_false(b.enabled());
DebugOption const *opt = DebugOption::first();
- assert_not_equal(opt, NULL);
+ assert_not_equal(opt, (DebugOption const *)NULL);
assert_true(opt == &a || opt == &b);
opt = DebugOption::next(opt);
- assert_not_equal(opt, NULL);
+ assert_not_equal(opt, (DebugOption const *)NULL);
assert_true(opt == &a || opt == &b);
opt = DebugOption::next(opt);
- assert_equal(opt, NULL);
+ assert_equal(opt, (DebugOption const *)NULL);
}
- assert_equal(DebugOption::first(), NULL);
+ assert_equal(DebugOption::first(), (DebugOption const *)NULL);
}
int main(int argc, char const *argv[])

0 comments on commit 55b7f2c

Please sign in to comment.