[odb-users] Compile Error with Lazy Pointers

EDDOWES Scott scott.eddowes at hds.leica-geosystems.com
Wed Sep 15 20:16:53 EDT 2021


>> Code that loads the lazy pointer needs to "see" definitions from the *-odb.hxx file corresponding to the pointed-to object (since load() effectively calls db.load<T>() underneath).
>> The simplest way to fix the above code is to make GetFooVal() non-inline and define it in foobar.cxx.

This worked. Thanks a lot!



More information about the odb-users mailing list