I have a problem with to create std::vector with String^ objects:
std::vector<String^> vSometing;
It prompt an error:
'&&': cannot use this indirection on type 'System::String ^'
So how to do list of String^ objects?
I have a problem with to create std::vector with String^ objects:
std::vector<String^> vSometing;
It prompt an error:
'&&': cannot use this indirection on type 'System::String ^'
So how to do list of String^ objects?
You could use the STL/CLR library if you really prefer using STL collections. One solution is List
. Vector
uses new to allocate it's objects, but you can't allocate System::String^
.
Soo use List<String^>
or convert System::String^
to std::string
.
How to convert, look this topic.