« first day (1528 days earlier)      last day (3421 days later) » 

10:00 PM
condom
 
user1804599
I tried to use a condom once. It didn't fit.
8
 
@rightføld Quick you should make an inb4 statement
 
user1804599
?
 
@LightnessRacesinOrbit I really have no idea and was just drive-by joking.
 
10:01 PM
@R.MartinhoFernandes I know
 
@rightføld Patented QuickFit™ technology
 
oh hey, it's one of the only two guys in the world who understands iostreams
 
user1804599
ok so
 
user1804599
Go it is
 
40 mins since pizza ordered
 
10:08 PM
@LightnessRacesinOrbit The anticipation is killing me.
 
@Nooble For him, it's the hunger that is killing him.
 
oops
doorbell went as soon as I wrote that
apparently it had been going for a few minutes
:$
 
@R.MartinhoFernandes Works for me.
 
ITT LRiO is a dick to pizza delivery.
 
@R.MartinhoFernandes Don't you need to recharge yourself? How many Ah is your battery?
 
10:09 PM
holy fuck I'm gonna go nuts trapped here for eight more days
 
@R.MartinhoFernandes not surprising
 
@R.MartinhoFernandes Terrible Robot joke.
 
no code no games
 
Go outside and enjoy the beauty of the swamp.
No, I didn't write that with a straight face.
 
10:11 PM
a) the swamp has no beauty, and b), it's 10:10pm here, and c), it's me
 
user1804599
@R.MartinhoFernandes he delivers dicks to pizzas?
 
1
Q: Displaying the contents of a multimap<string, vector<string> >

OskarI am trying to display the contents of a multimap with a string and a vector as key and value, respectively. I run into problems when I try to dislpay the contents of the vector (value in multimap). What I have done so far is: multimap<string, vector<string> > someMultimap; vector<string>...

 
I think I'll take German classes again in January.
 
It's like they don't even try sometimes.
 
Ich habe Hunger.
Someone give me food.
 
10:14 PM
no
 
Xeo
@R.MartinhoFernandes Actually, I'd be available in the evening too I think
 
@Puppy Please
 
Xeo
and sure, tomorrow after the game would be fine
 
nno
 
@Xeo Cool. I got it scheduled with @sbi.
I think.
The whole exchange was in German.
So maybe.
 
Xeo
10:15 PM
lol
 
@Puppy you should invest in a laptop.
This way you won't get bored to death in a swamp.
 
my current plan is that when I have saved some money I will buy a new machine and send my current one home
 
No, no, buy a tablet.
What happened to Bartek?
 
@MohammadAliBaydoun: we should really have output operators for the various value types in the C++ standard library.
 
I haven't seen him around for a while but that's what happens when you start working
 
10:16 PM
@R.MartinhoFernandes He'll be back after... Christmas or something.
 
@R.MartinhoFernandes But they don't have a keyboard.
 
Cool things happening
root@helios ~ # checkrestart
^C^C
Message from syslogd@helios at Dec 22 23:16:35 ...
 kernel:[614588.237653] BUG: soft lockup - CPU#1 stuck for 22s! [lsof:7565]

Message from syslogd@helios at Dec 22 23:16:35 ...
 kernel:[614588.237654] BUG: soft lockup - CPU#0 stuck for 22s! [ntpd:864]
 
It is somewhat embarrssing that we can't simply format pairs, containers, etc.
 
I haven't played kerbal in a while.
 
@Puppy Hmm, funny that you think of it as "home", and at the same time think yourself trapped there.
 
10:18 PM
Hmm...
 
@R.MartinhoFernandes My place in Bristol and my parents place are both "home".
 
@DietmarKühl At the first BoostCon, there was an attempt to work on that: svn.boost.org/trac/boost/wiki/…. It turned out a bit more complex than most people involved expected it to be though.
 
there's nothing wrong with this place, it just doesn't have a thing I really need right now
 
Err... Can CAT5 reach 300mbps?
 
no.
in fact, far from nothing wrong, this is a nice big place, with a mutt, and family, and nice food.
 
10:21 PM
@JerryCoffin: I'm aware that it isn't trivial. Especially as the formatting probably should be parameterizable (e.g., are sequences enclosed by parenthesis, brackets, curlies, ..., what separators should be used, do layout parameters like width() apply, etc.)
 
@Puppy Who's the mutt?
 
the one in my avatar.
 
@DietmarKühl If it were proposed, someone would just say that we have std::copy and std::ostream_iterator(std::string) for that :c
 
@Puppy How old is he/she?
 
4/5 years now I think
 
user1804599
10:22 PM
4/5 years old? That's pretty young.
 
However, just because we may get overboard and have the Ultimate Solution we shouldn't keep C++ as hostile to beginners as it is.
 
Yeah that's pretty young. 28 in dog years. Or something like that.
 
you sound like C++ being hostile to beginners has anything to do with not being able to perfectly format containers
 
user1804599
lol friend posted Google Images URL in IRC and it spanned like eight messages.
 
@MohammadAliBaydoun: sure. ... and enough people recognize that there is demand for foratting the various value-types.
@Puppy: well, sure, there are lots of other things which may be considered hostile but that doesn't mean that we might want to remove them.
 
10:25 PM
Console.WriteLine(new List<int>()); doesn't print anything useful in C#: ideone.com/svQPfw.
 
KSP is in Beta now!
 
Welcome to week ago
 
The same goes for pretty much every type in the BCL.
 
I've been playing quite a bit of Beta Than Ever
 
10:26 PM
@DietmarKühl Well, I think that a very large quantity of them could be targetted for removal.
 
@DietmarKühl Yeah--as I recall, a similar subject was discussed years ago on c.l.c++ (or maybe c.l.c++.m). I don't remember for sure, but would guess both you and James Kanze participated. Unfortunately, neither of you was at the original BoostCon, and I had minimal participation in the earlier thread, so while I warned them it was likely to be more difficult than they expected, I couldn't remember enough to give a lot of details.
 
You get the string provided by System.Type.ToString, which is just barely useful, but just barely.
 
hmm
not sure if I implemented checked pointer dereference in Wide
 
Ell
What was that covariant pointer discussion?
 
@CatPlusPlus I haven't played in a while.
 
10:28 PM
basically we all agree that having unique_ptr<Derived> not be a valid override for unique_ptr<Base> was dumb.
 
Ell
Was it that Derived* being implicitly convertible to Base* doesn't mean pointers are covariant?
 
@DietmarKühl I wonder why there is no such demand in other environments, though.
 
@Puppy: do we? I thought that conversion from unique_ptr<Derived> to unique_ptr<Base> can already be problematic.
 
@DietmarKühl I'm not aware of any problems.
 
@Nooble Yes, at least in theory. iebmedia.com/…
 
10:31 PM
@R.MartinhoFernandes: you mean, nobody asks to add formatting of sequences in other languages? Well, my suspicion is that most languages do have formatting for sequences... (and I'm not saying that I'd demand specifying all sorts of formatting options although I'd even know how to deal with them).
@Puppy: for starters, the deleter of the derived type may be correct while the one for the base type may not be, depending on whether the base type has a virtual destructor.
 
Just formatting stuff like containers is mostly for debugging
 
Otherwise it's full-blown serialisation to whatever format
 
@DietmarKühl Right, but here you're really talking about a PEBKAC problem.
 
user1804599
They want you to use the debugger. :P
 
10:33 PM
it's true that theoretically the user might make this mistake... but it's highly unlikely to actually occur and easy for implementations to warn on.
 
Formatting options are probably an overkill
 
I don't want to deep clone the shared pointers. I just one to increase the use_count when the shallow copy constructor of the shared_pointer is called. So you brought my attention that the trick just increased the use_count for the lifetime of temporary copy. So why am I not able to increase it when I am assigning (*storage_2)[i] = (*storage_1)[i]. This is assigning shared pointers and must call the copy constructor of the shared pointers which will increase the use count during the lifetime of (*storage_2)[i] ... — mustafabar 38 mins ago
Clearly shared pointers are way too hard for poor c++ programmer
 
also the general idea of people deleting things they shouldn't through base pointers has nothing to do with unique_ptr
 
0
Q: Default options for launching meteor

Nick TomlinI'm using Meteor.Settings to access secrets stored within a settings.json. Everything works fine using meteor --settings settings.json, but ideally i'd like to just call meteor and have it automatically pick up the settings. Is there a meteor way of specifying default options to the meteor cli?...

 
Ell
@DietmarKühl couldn't you just allow derived to base only when the destructor is virtual?
 
10:36 PM
This man wants to destroy the planet ;____;
 
user1804599
Me too.
 
user1804599
Fuck the planet.
 
@Ell In theory, the user could release() it... but let's face it, we all know that basically never happens.
 
@JerryCoffin: I guess, the first BoostCon predated C++11: with being able to sniff out a number properties without potentially running into compilation errors should actually provide quite a bit of flexibility.
 
WTF.
This annihilaser is broken :/
I can't build the last two catalysts for some reason.
 
10:38 PM
@Ell: that's actuallly a cute idea! :-)
 
#1 reason is because you either built or queued buildings in their area.
especially metal extractor.
 
There's a metal spot, but I made sure to not build an extractor on it.
 
if that doesn't work try queueing an area build of catalysts, which is often effective against the can't-place bug.
 
Maybe someone else did :v
 
@R.MartinhoFernandes They probably reasoned otherwise people would be thrashing their heaps doing implicit Collection<T>.ToString() calls all the time
 
10:39 PM
@DietmarKühl Yes it did, and yes, I think that's probably quite helpful. Even just being able to use a value_type when your "iterator" is really a raw pointer would cure some of the problems I recall.
 
I had that sometimes with metal extractors, I think the spot gets fiddly
 
@sehe That makes no sense.
 
well I generally think that the Catalyst build occupy area is bigger than the building fairly significantly
so you should leave a generous space buffer
they can frequently be fiddly to place
 
@R.MartinhoFernandes Well, it doesn't make sense to do collection serialization/streaming via a ToString() function. General-purpose-wise
 
@sehe ToString is not for serialization.
 
10:41 PM
Precisely
 
I don't see the relevance of that remark, then.
 
I was getting the impression you were surprised that ToString on BCL collection classes wasn't more useful. Perhaps you should say what you expect instead?
 
Ell
is it a classes job to serialise itsself to various formats?
 
user1804599
No.
 
@Ell depends (although "several formats" would really never be a nice responsibility for any class)
 
10:42 PM
it kinda depends on the class.
I think that a reflective serialization routine should be enough for most classes, but some types would need to define their own serialization.
 
Ell
@sehe Yeah that's my thought
 
@Ell You usually don't want to put all the responsibility on the class itself, but you usually can't export all responsibility to other classes either.
 
and I'm also thinking that in theory, you should be able to serialize to any format that meets a certain minimum requirement with a single function.
 
Ell
A serialize(Foo, ostream) would need access to the private members of your Foo though
 
I think with a general framework to format values (i.e. IOStreams) around it would make sense to have value types in the standard library use it. The problem with not having that is that two libraries each adding formatting will conflict, i.e., in practice you can't add formatting of any of the standard library containers yourself.
 
10:44 PM
not necessarily.
 
Ell
this makes sense, serialization is necessarily coupled with a class
 
I totally disagree.
 
Ell
@Puppy Why?
 
... and, yes, I realize that IOStream formatting is "only" useful for debugging and, maybe, logging.
 
if you serialize your private data members, then they are no longer private, because anybody could load the thing you serialized into and change what's there.
 
10:45 PM
@DietmarKühl That's essentially the same use, though.
@Puppy vOv
 
Ell
@Puppy just like you could change private data members through other means though, right?
 
@Puppy If you need to persist entire state then you need to persist entire state
 
@Ell Really not the same thing.
 
@R.MartinhoFernandes: I can agree with this assessment. it is still useful, though ;)
 
Ell
@Puppy why not ?
 
10:46 PM
Modifying database's storage directly is likely to fuck everything up too
 
for starters, because most of those things are totally undefined behaviour, instead of being super legal
 
Ell
the serialized data is "implementation detail"
 
and for seconds, because if you serialize to something like XML/JSON then pretty much anybody could just open it up with a text editor, even idiot users
 
Ell
So?
 
Deserialization routines should guarantee the same invariants for the resulting objects (or UB if you want to be lazy).
 
10:47 PM
Doesn't mean you need to load without any verification
 
I see no problem, then.
 
@Puppy Not necessarily true. If you wanted to badly enough, a class could (for example) encrypt its private data, so outside parties couldn't change it (in a meaningful way).
 
... and, BTW, we are observing one of the reasons why there is no formatting for many standard library types: the discussion tends to go somewhere entirely different! Instead of talking about primitive formatting, it becomes are discussion of serialization, persistence, etc. (there are a couple of other related topics).
 
well it's true that you can of course verify your inputs on deserialization
 
(even formatting options may be just too much...)
 
10:48 PM
but there's a difference between private data, and private representation of public data, if you get my drift.
 
Valid serialized data that was the result of fiddling is indistinguishable from valid unchanged serialized data.
 
A more useful mechanism would be generic boilerplate for going through the entire value
 
@mustafabar Reading comprehension. Let me spell it out some more: storage_1.get() == storage_2.get() is true. Hence, (*storage_1)[i].get() == (*storage_2)[i].get() is true. Hence (*storage_2)[i] = (*storage_1)[i]; doesn't do anythingsehe 8 secs ago
 
@CatPlusPlus Right, a reflective routine.
 
Damn. OP is really struggling. Even trying to tell me off.
 
Ell
10:49 PM
@DietmarKühl I personally think that it's the debuggers responsibility to format values (only for debugging of course, but as has been pointed out that is the "only" use case)
 
nah
 
user1804599
In Go serialisation functionality ignores private fields.
 
the debugger can never format anything, realistically, because it just doesn't know enough about the program.
 
Logging is a thing
 
I think that the program should provide debug view functions the debugger can call.
 
Ell
10:50 PM
@Puppy standard types I mean
 
@rightføld lol?
 
@Ell Not useful enough.
 
@JerryCoffin or with practical effort
 
Ell
I think the debug view should be specified outside of the program as with GDB
 
I bet in Blowlang serialisation ignores both private and public fields
 
user1804599
10:51 PM
@R.MartinhoFernandes It can't access them.
 
@Ell Debuggers can't make proper use of std::string IME.
 
user1804599
They're impossible to access using reflection.
 
@DietmarKühl When I've thought about it, it seemed like the cleanest way (or at least the one that fit best with existing infrastructure) was to define a new facet (or several) for container formatting, and imbue the stream with a locale using the formatting facet you wanted.
 
@Ell Which in practice pretty much seems to mean that debug views are never provided by anybody because they're such an arse to create in a dumb DSL and then dick around wiring up after the fact.
 
Just try using a std::string with embedded nulls.
 
10:52 PM
if you provided a debug_view function as part of your program, it would be debugger-independent and always available to everybody trying to debug your program.
 
Or, hell, a std::string with nonprintable characters. Or with bytes that don't form proper characters.
 
@CatPlusPlus I noticed this too
 
Ell
@Puppy they're written in python
 
That, of course, pre-supposes that you'd do the job as basically writing a container to a stream, but (again) at least to me that seems to be what fits reasonably well with existing practice.
 
Yes, all those sound like bad data, but it's a debugger for a reason.
@Ell Not in VS, hehe
 
10:53 PM
@Ell Which is a dumb DSL as far as writing C++ debugging routines is concerned.
 
@JerryCoffin: yes, that would be one approach. Note, however, that this approach unfortunately requires some level of type erasure or you'd need to add facet for each container/type (and spurious variations like allocator type). I can imagine solutions to these problems but things aren't that easy ;-)
 
if you're trying to debug a C++ object, you really need access to, well, C++.
 
Yet again hypervisor is non-responsive while VMs work fine
It is a mystery
 
... and I personally think that the debugging facilities (which for me includes logging in production systems) are important enough to warrant better support than there is currently.
 
in fact
 
10:55 PM
@Puppy You can write them in C++ and use Python only for glue, I guess.
 
I think that some functions, like debug_view and hash, seem to follow the same pattern.
because I'm thinking about how I might want debug_view to work in Wide and I came up with something very "Types don't know #"-like.
what we're really saying for both of these things is "Get my publicly visible state and do a thing with it".
I just had this idea so maybe it's super dumb and maybe I just haven't noticed yet.
 
Ell
"Get my state and do a thing with it"
 
@mustafabar I've explained that in the second sentence of my answer with a demonstration to follow. If you're unwilling to read my answer and try to understand it, I'm done here. You don't need to tell me I'm not understanding it. After all, it was you who came to SO with the question? — sehe 6 secs ago
Grrrrr. What a strange attitude that OP has.
 
@DietmarKühl Yeah, I certainly didn't think this was going to be anything like a magic wand that would make it all simple, easy and straightforward. I'm not sure you'd need separate facets for all containers though--at least if you can figure out how to put them to use correctly, most of the time you really only need one facet for sequences and one for associative containers.
 
@sehe You always seem to pop up in the Boost questions. ;~;
 
10:57 PM
It's where I lurk. So yeah
 
actually, for value types I'd expect that all necessary (salient) state should be visible in some form (which is'nt the same as having accessors to data members...)
 
@sehe Can we use Boost to explain why children like Cinnamon Toast Crunch?
 
@MohammadAliBaydoun cough ego Boost cough
 
@MohammadAliBaydoun It's inexplicable. They don't.
 
10:58 PM
Melange (/meɪˈlɑːndʒ/ or /meɪˈlɑːnʒ/) – also called the "spice" – is the name of the fictional drug central to the Dune series of science fiction novels by Frank Herbert, and derivative works. In the series, the most essential and valuable commodity in the universe is melange, a geriatric drug that gives the user a longer life span, greater vitality, and heightened awareness; it can also unlock prescience in some humans, depending upon the dosage and the consumer's physiology. This prescience-enhancing property makes safe and accurate interstellar travel possible. Melange comes with a steep price...
 
I probably couldn't ask my question properly. I can understand that light year is a measure of distance but time, and I can understand that 4 months to take a photo(its long exposure photograpy), and I can understand if we are seeing sth 13 b. light years away we will be seeing the object in a form that it was 13 b. years ago. I am clear with those concepts. What I don't understand is how the cameras take photos I guess. If not light what are they using? — Tolga Evcimen 16 hours ago
 
@R.MartinhoFernandes Cultural reference missed :(
 
@LightnessRacesinOrbit lolwut
> In Dune, Lady Jessica notes that her first taste of spice "tasted like cinnamon."
 
Mentioning cinnamon just pavlovs me to mention melange.
 
11:01 PM
I read it
 
@VáclavZeman That hat suits you
 
@MohammadAliBaydoun Totally! And it is even true that I have at least seen sumo live. :)
 
"sumo" is juice in Portuguese.
I have seen juice live.
 
@R.MartinhoFernandes Most juice I've seen was dead.
2
 
@mustafabar I'm indicating you don't understand because you don't understand. Hell, that's what you came to SO for. And, you keep trying to convince me that you do understand. Meanwhile missing the point of my answer. I didn't make an effort. I answered. And then I made an effort to make you read it. But it seems I failed. — sehe 8 secs ago
 
11:13 PM
@sehe You should hang your head in shame for such complete failure.
 
Yeah. I'm sad. I don't see what the OP is trying to convince me of. That's a strange reflex.
 
@sehe It's strange, but seems to be fairly common.
 
@sehe Go to bed, lay beside your wife, sleep. Tomorrow will be better. :)
 
Perhaps that's a benefit of lurking in , it's not quite so common there.
@VáclavZeman I have to arrange parts for a christmas concert. So, flute, clarinet: here I come
> procure
lol
 
@Richard - actually, Seven's body is of great interest period. — Omegacron 6 hours ago
oh boy. necrophilia on SFF.SE
 
11:25 PM
@sehe what about it?
 
Nice word
44 mins ago, by sehe
I was getting the impression you were surprised that ToString on BCL collection classes wasn't more useful. Perhaps you should say what you expect instead?
@R.MartinhoFernandes you never answered that, did you? (it's not very important - but I hate loose ends :))
 
I was just stating the state of affairs.
 
Okay. That's settled then
 
user1804599
I'm 20.
 
hahahaha. Someone has been upvoting the comments where the OP doesn't see why auto x = make_shared<int>(42); x = x; x = x; x = x; doesn't increase the use_count
What the hell. I especially love that it seems to be about my "bossy tone". Apparently nobody sees his comment style
@rightføld That's right! Almost forgot.
Happy Birthday @rightføld
7
 
user1804599
11:34 PM
Dankjewel.
 
Ahaha. It was gracious lightness. I guess I can be thankful he doesn't outright downvote my answers
 
Sorry for interrupting, I was wondering for these...

1.if(!logic_var) vs if(logic_var == false)
2. pointer == NULL vs pointer == 0 vs pointer == nullptr?

Any actual difference?(performance,compability with Older CXX standards)
 
they could all be very very different, depending on what logic_var and pointer are
however, if logic_var and pointer are of sensible types with sensible semantics, those should be equivalent
 
@LightnessRacesinOrbit bool variable and any pointer type respectively
 
@wing lol purrformance
 
11:37 PM
 
then no - entirely equivalent
 
@rightføld OMG, you are young!
 
Ell
@chmod711telkitty lol
 
@wing Probably no performance difference for any of them (assuming your logic_var really is a bool and your pointer really is a pointer). nullptr isn't part of C++98/03, but easy to implement in it if you want. You almost never want to use ==false.
 
@VáclavZeman There are several babies in here. Didn't you know?!
 
11:37 PM
@rightføld Happy Birthday :)
9
 
Ell
@rightføld happy birthday! You're allowed to redeem that factorio code now
 
@wing No performance difference for fundamental types.
 
@rightføld Happy birthday!
 
@LightnessRacesinOrbit Nope.
 
@LightnessRacesinOrbit Thanks a Lot

@VáclavZeman How about pointer of class types? (wait by fundamental its everything right?)
 
11:38 PM
right
 
@rightføld Is it a good thing that your birthday is so close to christmas?
 
pointers are pointers bro
 
@rightføld Conga Rats
 
user1804599
No.
 
user1804599
Fuck Christmas.
 
11:39 PM
My sister's birthday was last Wednesday. Well, it's still last Wednesday.
 
@JerryCoffin lol, people produce the weirdest shit. :D
 
@VáclavZeman So they do.
 
@rightføld Since it's your birthday, I won't question you. Fuck christmas! Yeah!
 
Ell
Let's all have a gangbang with @rightføld and christmas
 
user1804599
No.
 
11:40 PM
Fucking... sigh
 
user1804599
I need a party hat.
 
@sehe scratch that, I suppose.
 
Ell
@rightføld I thought you wanted to fuck christmas?
 
@rightføld Give me a few minutes!
What's your favorite color?
 
user1804599
brb; sleep
 
user1804599
@Nooble purple
 
-2
A: C++: delete on pointers to structs

dylamsamuelWhen you allocate dynamically a struct is a good practice to delete when finished using, on the example you're not creating a new struct, so you're pointing to nothing, you can't simply delete nothing, this question is dumb and is common knowledge...

 
Ell
@JerryCoffin I thought that was CGI when I looked first
maybe it is :3
 
santa & satan have a lot in common - both give you gifts but want something in return ...
 
11:43 PM
what does santa want in return?
 
@chmod711telkitty Hehe. Fortunately, here in the Czech Republic, it is not Santa who brings the presents.
 
@AndyProwl Your love.
Also cookies and milk.
 
Never gonna get that
 
@Ell Looks like Christmas to me
 
@AndyProwl good behaviour
satan wants bad behaviour instead
 
11:45 PM
Satan does not want bad behavior. He just wants your soul.
You can be good as long as you sell him your soul.
 
:D
 
@LightnessRacesinOrbit thanks for your answer on the thread delete on pointers to structs, I did this false deletion a few weeks ago.
 
@wing You are welcome.
Still haven't watched The Hunger Games
 
I wanna watch that too
 
Ell
meh it's okay
Nothing special imho
 
11:50 PM
@LightnessRacesinOrbit btw If I allocate with new[] a 2 dimensional array of class objects, has the following deletion proper syntax?
for (int i = 0; i < Size; i++) //Size of array
delete array[i];
 
That's how you felt about me at first
 
I also haven't watched Interstellar yet
 
@wing Probably. Can't tell for sure without seeing the allocations.
 
@AndyProwl what is satan going to do with all the souls?
 
@LightnessRacesinOrbit That was before the trauma
 
11:51 PM
Why the F. do people want to close this? It seems pretty clear to what he is asking about: stackoverflow.com/questions/27607856/…
 
@VáclavZeman I dunno. Perhaps "too localized"? I don't concur though. +1
 
@LightnessRacesinOrbit The allocation is
            Class** array = new Class*[Size];
    		for (int i = 0; i < Size ; i++)
    			array[i] = new Class[Size];
 
@VáclavZeman tl;dr
 
@wing delete[] . In a few seconds @LightnessRacesinOrbit is going to tell you the same (since he's too good to read my posts)
 
@wing Then yes your deletes are correct. Don't forget to delete array[] at the end.
 
11:53 PM
@chmod711telkitty Some fine answers here and here.
 
I'd use a vector instead, though, dude...
You have horrendous memory locality (read: none) and your code is error-prone
 
> Define soul.
> Well, if you want to have an idea what is done to your soul once the devil has brought you to hell, by your choices of course, just read the following excerpts showing and explaining what hell was like when these chosen souls were permitted to see that truly terrifying place:
 
@LightnessRacesinOrbit Cough. No they're not. All the more reason to use vectors, or multi_array indeed
 
all right I won't make fun of religion
 
no need
 
11:55 PM
@sehe @LightnessRacesinOrbit wait guys both for and delete[] map ?

For academic purposes I am limited to new[] delete[]
I read STL introductory and vector today :P , In fact I have used it elsewhere(for fun)
 
@wing anything allocated with new T[] goes with delete[]
 
@sehe
@LightnessRacesinOrbit

Ok now I get it thanks a million!
 
Please don't over plink and save a little vertical screen real estate. There's 3 redundant linebreaks there, and an empty line
 
@AndyProwl that's like search a garbage collection facility the size of a soccer field in search of a dirty blue cup
 

« first day (1528 days earlier)      last day (3421 days later) »