Gentoo Archives: gentoo-user-br

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

Attachments

File name MIME type
signature.asc application/pgp-signature