Array::ConvertAll in managed C++
- by danny.lesnik
This is a continuation from this post.
I'm trying to parse this string in managed C++:
String ^ rgba = "[0.09019608,0.5176471,0.9058824,1]";
cli::array<System::Double> ^ RGB = System::Array::ConvertAll<String,cli::array<System::Double> >((rgba->Substring(1,rgba->Length-2)->Split(',')),double::Parse);
Compiler throws me the following error:
Error 15 error C2770: invalid explicit generic argument(s) for 'cli::array<Type,dimension> ^System::Array::ConvertAll(cli::array<TInput,1> ^,System::Converter<TInput,TOutput> ^)'
What am I doing wrong?