[odb-users] #pragma view pointer() ignored on Windows

Boris Kolpackov boris at codesynthesis.com
Thu May 28 07:24:37 EDT 2015


Hi Adnan,

Adnan RIHAN <axel50397 at gmail.com> writes:
 
> erreur : no match for 'operator=' (operand types are
>  'QSharedPointer<offer_view>' and
>  'odb::object_traits<offer_view>::pointer_type {aka offer_view*}')

I am pretty sure this is a known bug in the query_one() implementation
(notice object_traits; it should be view_traits).

Here are two patches that fix it:

http://scm.codesynthesis.com/?p=odb/libodb.git;a=commit;h=b119086e8c5835695cd851da8ad1393218aa29df

http://scm.codesynthesis.com/?p=odb/libodb.git;a=commit;h=ee4d942916d347ac65f53969941b0fb100760611

Boris



More information about the odb-users mailing list