Overload operator new in your class, and make it public.