The member function do something is not defined. Here are two ways of putting content into headers and footers. My class h namespace n class my class public.