Le 12/05/2014 10:37, Mathias Gaunard a écrit :
>
> In modules/core/sdk/include/nt2/sdk/memory/container.hpp:
>
> > +    //==========================================================================
> > +    /*!
> > +     * @brief Add range of element at end of container's most external dimension
> > +     */
> > +    //==========================================================================
> > +    template<typename Container> void push_back( Container const& c)
> > +    {
> > +      BOOST_ASSERT_MSG(    boost::fusion::pop_back(sizes_)
> > +                        == boost::fusion::pop_back(c.extent())
> > +                      , "Incompatible size in range push_back"
> > +                      );
> > +
> > +      static const std::size_t d = extent_type::static_size-1;
> > +
> > +      data_.push_back(c.begin(),c.end());
> > +      sizes_[d] += boost::fusion::at_c<d>(c.extent());
>
> It's distinguishable if you use the runtime size information, but I'm 
> not sure it's such a great idea to use that.
>
> I'm not sure jtlap's suggestion is very good.
> In our use case we'll start with a size of 0x1x1x1, then we'll add 6x8 
> and then again after 6x8. We want to end up with 6x8x2x1
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/MetaScale/nt2/pull/748/files#r12517955>.
>
we have an empty matrix as first one so we want to end up at 6x8x1x1
Am I wrong ?

    JTL