Array::ConvertAll in managed C++
Posted
by
danny.lesnik
on Stack Overflow
See other posts from Stack Overflow
or by danny.lesnik
Published on 2010-12-26T13:28:02Z
Indexed on
2010/12/26
13:54 UTC
Read the original article
Hit count: 194
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?
© Stack Overflow or respective owner