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

MM finjulhich at gmail.com
Tue Jul 17 05:48:53 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.
>
> I have specialized container_traits and added that file in an options file
> like suggested in the manual.
> In the below snippet from the odb compiler 2.5.0-a9, odb compilation fails
> at :
> key_type is found from my container_traits, however the error highlighted
> below
> (container key_type is not instantiated) is triggered.
> I don't understand.


To add here, the key_type is   std::array<std::size_t, NumDims>  for
boost::multi_array.

Thanks


More information about the odb-users mailing list