Currently MockitoPP only supports mocking classes that have a single
virtual table. Determining a classes layout pseudo-dynamically is
nontrivial since there is no way at compile time to determine the adjusted
this and vtable offset. This information can be deduced at runtime given a
member function pointer and its compiler dependent layout (see:
http://www.codeproject.com/KB/cpp/FastDelegate.aspx). The tricky part is
taking a decoded MFP implementation and mapping it to a compile time
generated thunk that dispatches to the correct dynamic function.
Original issue reported on code.google.com by trevor.p...@gmail.com on 4 Nov 2009 at 5:25
Original issue reported on code.google.com by
trevor.p...@gmail.com
on 4 Nov 2009 at 5:25