[odb-users] custom containers or not: boost::multi_array

MM finjulhich at gmail.com
Thu Jul 5 04:22:55 EDT 2018

> MM <finjulhich at gmail.com> writes:
> > Is it possible to implement persistence and loading for a
> > boost::multi_array using the custom container method in the manual?
> You could try to store it as a map kind with a composite key with
> members for all the indexes. I think it should work though I haven't
> tried it myself.

"Map container" in the odb sense doesn't guarantee ordering which is fine
for this boost::multi_array case.
But I suspect that odb understands when it sees a std::map that it is a
"map container".
You are saying that I should create a new header for boost multi_array
similar to odb/std_map-traits.hxx  where I provide a partial template
specialization for the primary template   odb::access::container_traits ?

Did I understand that correctly?


More information about the odb-users mailing list