Closed tuhdo closed 10 years ago
moo-complete
works fine on this simple file:
I know the reason. I got another variable with the name "a", and I assign the same name to the string variable. Maybe in this case, a more useful message should be displayed.
This issue will not occur if you use this idiomatic C++ code:
struct Answer
{
unsigned obj = 0;
unsigned opt = 0;
std::string answer;
};
instead of your old-style C code. It's related to typedefs not being de-referenced
currently by function-args
, like in the issue #6. I'll try to fix it soon.
Try it out now. It should work with your old code as well.
I got this error when trying to
moo-complete
a string. Here is the code:coloring_solver.cpp: http://pastebin.com/5fVdN7yx coloring_solver.h: http://pastebin.com/f4hGmnXW vertex.h: http://pastebin.com/Gwg77QXS
You can
moo-complete
it in the cpp file.