Hey, I'm trying to process arguments in a C++ plugin. I'm a Python guy, not 
C++, so little things like constructors trip me up a lot.

If I do it like this:
MArgDatabase inputArgs(syntax(), argList);

it works fine.

But I want inputArgs to be a member variable, so it's already been 
constructed. I thought I would be able to copy it like this:

inputArgs = MArgDatabase(syntax(), args);


but that doesn't work. Can anyone explain why? I thought C++ classes 
automatically got copy assignment operators.

And what's the right way to populate an MArgDatabase that already exists? 
Or should I use a pointer (with the added complexity and memory management 
that I'm also not used to).

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/b19eba4e-2800-4d77-8bfe-3d49ca354ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to