[odb-users] query::Age --> Incomplete type is not alowed

Tarik BENZ tenchu.tarik at hotmail.fr
Fri Apr 26 04:01:02 EDT 2013


Yes, indeed! 
Thank you very much!

Tarik

> Date: Fri, 26 Apr 2013 09:56:11 +0200
> From: boris at codesynthesis.com
> To: tenchu.tarik at hotmail.fr
> CC: odb-users at codesynthesis.com
> Subject: Re: [odb-users] query::Age --> Incomplete type is not alowed
> 
> Tarik BENZ <tenchu.tarik at hotmail.fr> writes:
> 
> > So I think query support should be enabled
> 
> Ok, the issue is actually simpler than that: you forgot to include
> User-odb.hxx:
> 
> #include "User.hxx"
> #include "User-odb.hxx"
> 
> The other two things that you may want to do:
> 
> 1. Add include guards to User.hxx and Role.hxx, for example:
> 
> #ifndef USER_HXX
> #define USER_HXX
> 
> ...
> 
> #endif
> 
> 
> 2. Seeing that you are using std::shared_ptr in relationships, you will
>    need to make it the object pointer. The easiest way to do this is to
>    make it the default object pointer:
> 
> --default-pointer std::shared_ptr
> 
> Boris
 		 	   		  


More information about the odb-users mailing list