mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
3d9011f99d
commit
48da35fef0
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue