1 |
Galera, to tentando brincar com uns códios em c++ e to com problema nesse template. Alguem pode dar uma ajuda pra mim? Sei que a lista não eh pra isso, mas vai que alguem manja e pode me ajudar? Valeu! |
2 |
|
3 |
template<typename T> static VALUE cxx2ruby(TagLib::List<T> list) |
4 |
{ |
5 |
VALUE rubyarray = rb_ary_new2(list.size()); |
6 |
TagLib::List<T>::Iterator it; |
7 |
|
8 |
for(it = list.begin() ; it != list.end(); it++ ) |
9 |
{ |
10 |
rb_ary_push(rubyarray, cxx2ruby(*it)); |
11 |
} |
12 |
|
13 |
return rubyarray; |
14 |
} |
15 |
|
16 |
-- |
17 |
_______________________________________________ |
18 |
Check out the latest SMS services @ http://www.linuxmail.org |
19 |
This allows you to send and receive SMS through your mailbox. |
20 |
|
21 |
Powered by Outblaze |
22 |
|
23 |
-- |
24 |
gentoo-user-br@g.o mailing list |