C++ CLI: cliext::vector<T> as return type of public class function?
问题 I have next class in C++ CLI: public ref class MyClass { public: MyClass(void); virtual bool Init(); cliext::vector<int>^ ListOfNumbers(); }; I would like to recive vector of int from public fucntion. Here is impl: cliext::vector<int>^ MyClass::ListOfNumbers() { cliext::vector<int>^ devs = gcnew cliext::vector<int>(); devs->push_back(1); return devs; } My problem is that I got next warning: warning C4677: 'ListOfNumbers': signature of non-private member contains assembly private type 'cliext: