$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Ryo IGARASHI (rigarash_at_[hidden])
Date: 2006-03-25 03:47:08
On 3/23/06, Leif Gruenwoldt <leifer_at_[hidden]> 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_at_[hidden]