Commits

Matt Oswald committed e185fee

fixed error in has_empty

  • Participants
  • Parent commits bee8888

Comments (0)

Files changed (1)

File xUnit++/xUnitAssert.h

         class check {};
 
         template<typename C>
-        static char f(check<void (C::*)(), &C::empty> *);
+        static char f(check<bool (C::*)() const, &C::empty> *);
 
         template<typename C>
         static long f(...);
     typename std::enable_if<!has_empty<TSequence>::value>::type Empty(const TSequence &sequence, const std::string &msg = "") const
     {
         using namespace std;
-
+    
         if (begin(sequence) != end(sequence))
         {
             throw xUnitAssert("Empty", msg, "", "", "");