[odb-users] Compilation error in odb\lazy-ptr.ixx - ODB 2.4.0 -
Visual C++ 12 - Windows 7
Boris Kolpackov
boris at codesynthesis.com
Fri Feb 19 10:22:38 EST 2016
Hi Fabrizio,
Fabrizio Maj <fabrizio.maj at it.atlascopco.com> writes:
> c:\projects\libsroot\libodb-2.4.0\odb-2.4.0-i686-windows\mingw\include\odb\lazy-ptr.ixx:1153:10:
> error: no match for 'operator=' (operand types are 'std::shared_ptr<Child>'
> and 'odb::object_traits<Child>::pointer_type {aka Child*}')
>
> p_ = i_.template load<T> (true); // Reset id.
You need to make std::shared_ptr the object pointer for Child. See Section
3.3, "Object and View Pointers".
BTW, most malware these days is sent as .zip archives so we should probably
avoid sending test cases in this format (quite a few organizations simply
reject any email that contains a .zip attachment).
Boris
More information about the odb-users
mailing list