code logs -> 2007 -> Mon, 12 Nov 2007< code.20071111.log - code.20071113.log >
--- Log opened Mon Nov 12 00:00:27 2007
00:26 You're now known as TheWatcher[T-2]
00:34 You're now known as TheWatcher[zZzZ]
00:41 Thaqui [~Thaqui@Nightstar-26587.jetstream.xtra.co.nz] has joined #code
00:41 mode/#code [+o Thaqui] by ChanServ
00:41 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Client exited]
01:26 Thaqui [~Thaqui@Nightstar-26587.jetstream.xtra.co.nz] has quit [Ping Timeout]
01:50 Vornicus is now known as Finerty
02:35 McMartin [~mcmartin@76.204.182.ns-21790] has quit [Quit: leaving]
02:55 McMartin [~mcmartin@Nightstar-16277.dsl.pltn13.sbcglobal.net] has joined #code
02:55 mode/#code [+o McMartin] by ChanServ
03:19 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z?]
05:38 * McMartin mutters in annoyance at C++
05:38
<@Finerty>
What did it do this time?
05:39
<@McMartin>
Find the error:
05:39
<@McMartin>
g++ -c `sdl-config --cflags` -O2 -Wall -o c64sprite.o c64sprite.cc
05:39
<@McMartin>
c64sprite.cc: In member function 'void SpriteSet::saveBinary(const char*) const':
05:39
<@McMartin>
c64sprite.cc:281: error: conversion from '__gnu_cxx::__normal_iterator<const C64Sprite*, std::vector<C64Sprite, std::allocator<C64Sprite> > >' to non-scalar type '__gnu_cxx::__normal_iterator<C64Sprite*, std::vector<C64Sprite, std::allocator<C64Sprite> > >' requested
05:39
<@McMartin>
That line is: for (std::vector<C64Sprite>::iterator i = vec.begin(); i != vec.end(); i++) {
05:39
<@McMartin>
The error is, at least, actually on that line.
05:41
<@McMartin>
Answer: because this is defined in a method which announces that it shall not modify itself (saveBinary(...) const), vector::begin() does not return an iterator.
05:41
<@McMartin>
Instead, it returns a const_iterator.
05:42
<@Finerty>
D:
05:42
<@McMartin>
This is, of course, perfectly clear from the error message. =P
05:42
<@McMartin>
Oh, pardon me. I spoke of "iterator" and "const_iterator" as if they were actual types.
05:42
<@Finerty>
I know what they are.
05:43
<@McMartin>
I meant std::vector<C64Sprite>::iterator and std::vector<C64Sprite>::const_iterator, of course.
05:57 Finerty is now known as Vornicus
05:59
<@McMartin>
My C64 sprite editor is now basically usable, though.
05:59
<@McMartin>
And it has a C64-native display application!
05:59
<@McMartin>
Of course, I have nothing in particular to *do* with it.
06:52 GeekSoldier [~Rob@Nightstar-4748.pools.arcor-ip.net] has quit [Ping Timeout]
07:22 GeekSoldier [~Rob@Nightstar-3673.pools.arcor-ip.net] has joined #code
08:05 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has quit [Ping Timeout]
09:22 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has joined #code
09:22 mode/#code [+o Forj] by ChanServ
09:24 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
09:37 You're now known as TheWatcher
10:03 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has joined #code
10:03 mode/#code [+o Pi] by ChanServ
10:06 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
10:06 mode/#code [+o gnolam] by ChanServ
10:27 MyCatVerbs [~rb6822@Nightstar-23588.cs.bris.ac.uk] has joined #code
11:31 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has quit [Ping Timeout]
11:34 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot, GeekSoldier, @AnnoDomini
11:34 Netsplit over, joins: DiceBot
11:34 Netsplit over, joins: GeekSoldier
11:34 mode/#code [+v DiceBot] by ChanServ
11:35 Netsplit over, joins: AnnoDomini
11:35 mode/#code [+o AnnoDomini] by ChanServ
11:36 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot, GeekSoldier
11:47 Netsplit over, joins: GeekSoldier
11:48 Netsplit over, joins: DiceBot
11:48 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: DiceBot, GeekSoldier
11:49 Netsplit over, joins: GeekSoldier, DiceBot
11:51 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: DiceBot, GeekSoldier
11:53 Netsplit over, joins: GeekSoldier
11:53 Netsplit over, joins: DiceBot
11:54 Netsplit Null.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: DiceBot, GeekSoldier
12:00 MyCatVerbs [~rb6822@Nightstar-23588.cs.bris.ac.uk] has quit [Quit: Swim, swim, hungry!]
13:19 DiceBot [~Reiver@Nightstar-3074.ubs-dsl.xnet.co.nz] has joined #Code
13:19 GeekSoldier [~Rob@Nightstar-3673.pools.arcor-ip.net] has joined #Code
13:29 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has joined #code
13:29 mode/#code [+o Pi] by ChanServ
13:43 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has quit [Ping Timeout]
13:43 MyCatVerbs [~rb6822@Nightstar-23456.cs.bris.ac.uk] has joined #code
13:58 MyCatVer1s [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code
13:58 MyCatVerbs [~rb6822@Nightstar-23456.cs.bris.ac.uk] has quit [Quit: Swim, swim, hungry!]
13:58 MyCatVer1s [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Quit: leaving]
13:59 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code
15:41 Pi [~sysop@Nightstar-24414.hsd1.wa.comcast.net] has joined #code
15:41 mode/#code [+o Pi] by ChanServ
17:16 You're now known as TheWatcher[afk]
17:20 AnnoDomini [AnnoDomini@Nightstar-29038.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
17:26 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has joined #code
17:26 mode/#code [+o Forj] by ChanServ
17:27 AnnoDomini [AnnoDomini@Nightstar-29083.neoplus.adsl.tpnet.pl] has joined #Code
17:27 mode/#code [+o AnnoDomini] by ChanServ
17:28 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
18:16 You're now known as TheWatcher
18:43 Chalcedon [~Chalcedon@Nightstar-10789.ue.woosh.co.nz] has joined #code
18:43 mode/#code [+o Chalcedon] by ChanServ
19:34 GeekSoldier is now known as GeekSoldier|bed
21:31 Thaqui [~Thaqui@Nightstar-12017.jetstream.xtra.co.nz] has joined #code
21:31 mode/#code [+o Thaqui] by ChanServ
22:03 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has joined #code
22:03 mode/#code [+o Forj] by ChanServ
22:06 Forj [~Forj@Nightstar-10789.ue.woosh.co.nz] has quit [Quit: Gone]
23:15 Kyrre [~Z@87.72.35.ns-26506] has joined #Code
--- Log closed Tue Nov 13 00:00:33 2007
code logs -> 2007 -> Mon, 12 Nov 2007< code.20071111.log - code.20071113.log >