1 |
Funcionou!! haha não tinha nem ideia disso!! Obrigado mesmo Benigno! |
2 |
|
3 |
> ----- Original Message ----- |
4 |
> From: "Benigno B. Junior" <bbj@g.o> |
5 |
> To: gentoo-user-br@l.g.o |
6 |
> Subject: Re: [gentoo-user-br] Problemas com C++ [[off topic] |
7 |
> Date: Fri, 12 May 2006 13:29:47 -0300 |
8 |
> |
9 |
> |
10 |
> Pelo interpretação dos seus códigos, você precisa explicitar a linha: |
11 |
> TagLib::List<T>::Iterator it; |
12 |
> |
13 |
> Como typename: |
14 |
> typename TagLib::List<T>::Iterator it; |
15 |
> |
16 |
> On Fri, 12 May 2006 17:06:08 +0800 |
17 |
> "Carlos Augusto Silva" <carlos.aug@×××××××××.org> wrote: |
18 |
> |
19 |
> / Esqueci de falar do problema. Ta dando um erro, "expected ; before |
20 |
> / 'it'" |
21 |
> / |
22 |
> / |
23 |
> / > ----- Original Message ----- |
24 |
> / > From: "Carlos Augusto Silva" <carlos.aug@×××××××××.org> |
25 |
> / > To: "gentoo-user-br" <gentoo-user-br@l.g.o> |
26 |
> / > Subject: [gentoo-user-br] Problemas com C++ [[off topic] |
27 |
> / > Date: Fri, 12 May 2006 17:02:44 +0800 |
28 |
> / > |
29 |
> / > |
30 |
> / > Galera, to tentando brincar com uns códios em c++ e to com problema |
31 |
> / > nesse template. Alguem pode dar uma ajuda pra mim? Sei que a lista |
32 |
> / > não eh pra isso, mas vai que alguem manja e pode me ajudar? Valeu! |
33 |
> / > |
34 |
> / > template<typename T> static VALUE cxx2ruby(TagLib::List<T> list) |
35 |
> / > { |
36 |
> / > VALUE rubyarray = rb_ary_new2(list.size()); |
37 |
> / > TagLib::List<T>::Iterator it; |
38 |
> / > |
39 |
> / > for(it = list.begin() ; it != list.end(); it++ ) |
40 |
> / > { |
41 |
> / > rb_ary_push(rubyarray, cxx2ruby(*it)); |
42 |
> / > } |
43 |
> / > |
44 |
> / > return rubyarray; |
45 |
> / > } |
46 |
> / > |
47 |
> / > -- |
48 |
> / > _______________________________________________ |
49 |
> / > Check out the latest SMS services @ http://www.linuxmail.org |
50 |
> / > This allows you to send and receive SMS through your mailbox. |
51 |
> / > |
52 |
> / > Powered by Outblaze |
53 |
> / > |
54 |
> / > -- |
55 |
> / > gentoo-user-br@g.o mailing list |
56 |
> / |
57 |
> / > |
58 |
> / |
59 |
> / |
60 |
> / -- |
61 |
> / _______________________________________________ |
62 |
> / Check out the latest SMS services @ http://www.linuxmail.org |
63 |
> / This allows you to send and receive SMS through your mailbox. |
64 |
> / |
65 |
> / Powered by Outblaze |
66 |
> / |
67 |
> / -- |
68 |
> / gentoo-user-br@g.o mailing list |
69 |
> / |
70 |
> |
71 |
> |
72 |
> -- |
73 |
> Benigno B. Junior <bbj@g.o> |
74 |
> Gentoo Developer - http://dev.gentoo.org/~bbj |
75 |
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3995B21 |
76 |
> << signature.asc >> |
77 |
|
78 |
> |
79 |
|
80 |
|
81 |
-- |
82 |
_______________________________________________ |
83 |
Check out the latest SMS services @ http://www.linuxmail.org |
84 |
This allows you to send and receive SMS through your mailbox. |
85 |
|
86 |
Powered by Outblaze |
87 |
|
88 |
-- |
89 |
gentoo-user-br@g.o mailing list |