but have you invoked build-in constructor? you have to do it explicitly in class constructor init list "main_document_data_()".