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

MM finjulhich at gmail.com
Tue Jul 17 11:01:56 EDT 2018


>
> MM <finjulhich at gmail.com> writes:
> > To add here, the key_type is   std::array<std::size_t, NumDims>  for
> > boost::multi_array.
> Using another container as a key won't work. Just try to think how this
> can possibly work: ODB needs to map a key to one or more columns in the
> table. It knows how to do that for simple and composite values.


Of course. I got excited about implementing the container_traits for
generic N of boost::multi_array and forgot the context. Thanks.
I'll specialize for multi_array< 2 >  with 2 dims only.
I'll use a std::pair<size_t, size_t> as the key_type instead


More information about the odb-users mailing list