[odb-users] lazy_shared_ptr compilation issue

Boris Kolpackov boris at codesynthesis.com
Thu Apr 23 10:26:16 EDT 2015


Hi Konstantin,

Konstantin Tarovik <konstantin.tarovik at ab-soft.net> writes:

>        odb::lazy_shared_ptr<Contact>  _sender;
>
> [...]
>
>        p_ = i_.template load<T> (true); // Reset id.
> [...]
>        note: candidate function not viable: no known conversion from
>        'typename object_traits<Contact>::pointer_type' (aka
>        'rc::core::Contact *') to 'const

The object pointer of Contact is a raw pointer, not std::shared_ptr
(Section 3.3).

Boris



More information about the odb-users mailing list