[odb-users] composite value type from std::array<T, N>

MM finjulhich at gmail.com
Wed Jul 18 10:31:17 EDT 2018

Taking the std::pair example from the manual, where a phone_numbers were a
pair of strings member inside a person struct.
That defined phone_numbers with the pragma value and the 2 columns were

Given a particular instantiation of std::array<T,N> with a particular T and
N, can that be declared as a value with the pragma. Theoretically, it
should be possible as N is known at compile time, and the number of rows
would be known.

Failing that, I assume std::tuple<T,T,T....,T> is pragma' able as a value?


More information about the odb-users mailing list