vachanpo...@gmail.com
unread,Jan 13, 2021, 1:23:34 AM1/13/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Dear all,
I require to use a vector of an array of FunctionParsers in my code
std::vector< std::array<FunctionParser<2>, 4> > fps_vec;
At a later point when I know its size, I call
fps_vec.resize(size);
This line produces a long build error message (attached) starting with
invalid application of ‘sizeof’ to incomplete type ‘mu::Parser’
static_assert(sizeof(_Tp)>0,
If I comment out the resize line, then the remaining program compiles successfully. I noted that such an error occurs when the compiler is not able to see the object's declaration. But I already included the header file deal.II/base/function_parser.h. Wouldn't that point to relevant muparser's header file?
In a different file, I had used an std array of FunctionParsers and that worked fine. Doesn't that mean that the definition of mu::Parser is visible to compiler? I am unable to understand what is causing this error.
Is there any workaround for this? Thanks in advance!