I am using TRI DDS - here is the prototype for the function I am trying to call:
template dds::sub::cond::ReadCondition::Re
You can use a lambda function with a capture.
dds::sub::cond::ReadCondition rc(*mp_reader, dds::sub::status::DataState::any(), [this](){ this->do_stuff(); });