Added support for nullptr as constraint

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@648 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2013-05-12 08:59:25 +00:00
parent 42c2c4e6a4
commit 1320a96179
12 changed files with 96 additions and 10 deletions

View file

@ -7,6 +7,7 @@ Not yet released
* Return actions now accept by copy types derived from abstract base types
* Officially documented MOCK_UNARY_CONSTRAINT and MOCK_BINARY_CONSTRAINT
* Added support for several sequences in 'in'
* Added support for nullptr as constraint
[endsect]

View file

@ -39,6 +39,10 @@ However a somewhat better solution would be :
MOCK_EXPECT( m.method ).with( mock::negate );
or with C++11 nullptr support :
MOCK_EXPECT( m.method ).with( nullptr );
[endsect]
[section Template methods cannot be mocked]