[odb-users] raw pointer to application's global array

MM finjulhich at gmail.com
Wed May 28 08:56:12 EDT 2014


My struct has a const std::string* member. This points to an element in a
global array of const std::string initialized before main.

What can be the repr of that field as a column in the sql table?

This global array is small and fairly will never change. I don't need it in
the database.

Loading would load the row from the table and somehow make the pointer
point to right element of the static global array.
Storing would store the persistent object in the table.

I assume the pointee (string) could be stored in the table but i'm not sure
how to implement that?


More information about the odb-users mailing list