[odb-users] How to represent member double* in a persistent class

Sum, Eric B eric.b.sum at lmco.com
Fri Aug 12 08:43:23 EDT 2011


Hi,

I am declaring a class persistent, and one of the members of the class is a pointer to a double(double*).  So far, I have seen two ways to represent this in odb:


1.       Declare it as an integer(#pragma db type("INTEGER"))

2.       Use a smart pointer to represent it(for example shared_ptr<double>)

What is the best way to represent a pointer to a double in odb?

Thanks,
Eric


More information about the odb-users mailing list