#pragma db object class person { ... private: friend class odb::access; person () {} #pragma db id string email_; string name_; unsigned short age_; };
但你在已经存在的代码上这样做,所以不,它不生成任何东西.