|
Ublas : |
Subject: Re: [ublas] Problem creating mapping from string to vector_expression
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2017-03-31 07:25:40
On 2017-03-30 16:43, Nasos Iliopoulos via ublas wrote:
> I don't think what you are trying to achieve is possible. The reason
> is that when you try to instantiate anything of the form:
>
> unordered_map<std::string, vector_expression <T> >
>
> it will turn to be a type like:
>
> unordered_map<std::string, vector_expression <
> vector<container<vector<int>>> >
>
> So "c" will only be able to deal with vector<int>.
Note that this will still fail to work even for vector<int> in the
example as the vector_expression base class itself does not represent
the vector.
Best,
Oswin