Changed char* constraint behaviour to be comparable to another char*

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@548 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-09-01 22:21:12 +00:00
parent 3d9011f99d
commit 48da35fef0

View file

@ -15,6 +15,7 @@
#include <boost/utility/enable_if.hpp> #include <boost/utility/enable_if.hpp>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <boost/ref.hpp> #include <boost/ref.hpp>
#include <cstring>
namespace mock namespace mock
{ {
@ -66,7 +67,7 @@ namespace detail
{} {}
virtual bool operator()( const char* actual ) virtual bool operator()( const char* actual )
{ {
return strcmp( actual, expected_ ) == 0; return std::strcmp( actual, expected_ ) == 0;
} }
private: private:
virtual void serialize( std::ostream& s ) const virtual void serialize( std::ostream& s ) const