
25 Mar
2006
25 Mar
'06
8:47 a.m.
On 3/23/06, Leif Gruenwoldt <leifer@gmail.com> wrote:
Is there a way to test the private functions of a class without moving them into public scope during test?
What are some strategies for this?
Try following evil hack. // someclass_test.hpp #define private public #define protected public #include <someclass.hpp> #undef protected #undef private -- Ryo IGARASHI rigarash@gmail.com