In short, you can't. You can use STL and such to implement COM exposed methods but the methods themselves can only accept certain types as parameters. See
here[
^] for a list and details. COM is language neutral so it wouldn't make sense to export C++ specific types.