[odb-users] Compilation error with custom lazy_shared_ptr

Quentin Deldycke quentindeldycke at gmail.com
Mon Sep 22 03:31:19 EDT 2014


Hi,

I created a reimplementation of odb::tr1::lazy_shared_ptr. (I derivate from
it.)

I have a compilation error:

../../../../include/odb/tr1/lazy-ptr.ixx:189:12: error: no match for
‘operator=’ (operand types are ‘std::tr1::shared_ptr<OTIdentifiant>’ and
‘odb::object_traits<OTIdentifiant>::pointer_type {aka OTIdentifiant*}’)
         p_ = i_.template load<T> (true); // Reset id.

Do i have a missing operator= or a copy constructor?
--
Deldycke Quentin


More information about the odb-users mailing list