Permalink
Browse files

Soothe compiler's angst related to multiple count methods.

  • Loading branch information...
1 parent f8815d0 commit 5adf2b71c2a35b6ffe613883325acf5f70d70b6b Adam Milligan committed Oct 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Headers/Matchers/Comparators/ComparatorsContainer.h
@@ -9,9 +9,9 @@ namespace Cedar { namespace Matchers { namespace Comparators {
template<typename T>
bool compare_empty(const T & container) {
if ([container respondsToSelector:@selector(count)]) {
- return 0 == [(id)container count];
+ return 0 == [container performSelector:@selector(count)];
} else {
- return 0 == [(id)container length];
+ return 0 == [container performSelector:@selector(length)];
}
}

0 comments on commit 5adf2b7

Please sign in to comment.