vmcpherson / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Eq(NULL) should compile #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It can be surprising that Eq(NULL) doesn't compile (it requires an explicit
cast).  Ideally we should be able to make it just work.

We should probably do the same for Ne(NULL), even though we already have
NotNull().  The benefit here is to minimize surprise and make the API more
regular.

Original issue reported on code.google.com by zhanyong...@gmail.com on 22 Aug 2009 at 6:16

GoogleCodeExporter commented 9 years ago
We've decided this is technically impossible, short of making Eq() a macro.

Original comment by zhanyong...@gmail.com on 4 Sep 2009 at 9:02