Hi
One way: Subclass and override...
Make B() virtual.
Make a class that inherits the original class and override B() for test.
You can also do it with the linker. But you need to split B() into a separate file.
If you need to do this, you likely have a design problem.
Cheers, HTH, James
--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/7db1e6ac-d599-4f31-a4d7-a019f9c9eacen%40googlegroups.com.
![]() |
wingman-sw.com blog.wingman-sw.com @jwgrenning facebook.com/wingman.sw |