« first day (646 days earlier)      last day (4310 days later) » 

5:00 PM
UTF-8 can have BOM to identify the file as UTF-8.
 
@JerryCoffin Windows adds some sort of weird BOM thing in UTF-8, IIRC
 
Gotta make a run for the border.
 
@keith.layne Ok thank you.
 
Byte order is constant, though.
 
5:00 PM
@TonyTheLion Byte order
 
Byte order marker.
 
not very familiar with the UTF stuff
 
@CatPlusPlus So it's not much of a BOM then! (I know you didn't pick the name.)
 
@JerryCoffin: Quite sure there is
 
5:00 PM
@EtiennedeMartel It's the regular BOM codepoint, encoded as UTF-8.
 
@EtiennedeMartel Yeah, Unicode even blesses taking what would otherwise be a BOM and encoding it into UTF-8 -- but it's still not a BOM.
 
@LucDanton It's a BUM.
 
Huh, didn't know you could inline friend definitions into the class
 
@nhahtdh An UTF-8 reader should have no trouble with it.
 
You can, but it'll be reachable only by ADL.
AFAIR.
 
5:01 PM
So now I have ideone.com/Pdr2I ( provided by keith )... How does this affect my class definition?
http://pastebin.com/ZhW9Cxba
 
@CatPlusPlus If not declared outside, yeah.
 
@JimNorton Revisiting how you implement the destructor is probably in order.
 
Get rid of dtor, get rid of cairo_t*, use custom deleters.
 
Also, mem-init list. For the constructor. And that's not specific to using std::unique_ptr.
 
Ctor so needs to be a game character.
 
5:03 PM
Also bllleeegh getters and setters.
 
@CatPlusPlus Biggest OO bloat.
 
@DomagojPandža Cthulhor.
@CatPlusPlus Lone getters and lone setters are fine.
 
@DomagojPandža "anti-OO bloat" FTFY.
 
@JerryCoffin You're late. OO is being twisted to mean something else, and there's nothing you can do to stop it.
 
A song made for you, drunkard. :P
 
5:05 PM
I had an OO class in university named with the acronym POO.
 
@R.MartinhoFernandes Having spent 30+ years tilting against the windmill of using "assembler" to mean "assembly language", I feel quite capable doing something to stop it, even knowing full well that it'll be entirely ineffective.
 
@R.MartinhoFernandes was it taught in Java?
 
@JerryCoffin Assembler as a define for assembly language is the worst, true.
 
@JerryCoffin Oh, "assembler the language" that always pisses me off.
 
<--- head has exploded .... My knowledge of C++ is apparently not great enough to understand this stuff yet... and I appreciate all the advice, but I'm getting confused. :-( I just want my class to have two pointer members that will assigned in the constructor... But this unique_ptr stuff is confusing the crap out of me and I'm getting ton of compile errors.

This is what I have now along with the compile errors: http://pastebin.com/ZhW9Cxba
 
5:06 PM
picks up head pieces
@TomW Yes.
 
Ok my head is back together... next round
 
how appropriate
 
@JimNorton cairo_image_surface_get_width( m_surface.get() );
 
My language doesn't have a distinction between assembler and assembly.
 
You mean the pOOp language?
 
5:07 PM
@JimNorton unique_ptr doens't convert to a raw pointer implicitly, you call .get() to tell it you want to get the raw pointer. It's irritating, but adds a lot of safety
 
@TomW ... you fight like a cow!
 
@CatPlusPlus I'm in the club, too.
 
@MooingDuck Oh.. so when I want to use m_surface as a raw pointer I simply append .get()?
 
@CatPlusPlus My language doesn't even have a word for either.
 
5:09 PM
@JimNorton yup, that's it
 
@MooingDuck K thanks... will try that
 
Well, Brazilians came up with crap like "assemblador" and "assemblagem", but they're stupid. You'll look like a fool if you say that over here.
 
@JimNorton Make sure that whatever you pass the result to, it doesn't need to take ownership.
 
@R.MartinhoFernandes so is Brazil like Portugal's America?
 
@TonyTheLion Damn, that's hardcore.
 
5:10 PM
constantly abusing the language?
 
@TomW Possibly, yeah.
 
@DomagojPandža literally
 
@R.MartinhoFernandes Does that mean you use the English words, or that you make meaningful gestures and raise much eyebrows to mention "you know... that kind of language"?
 
@JimNorton with one exception: cairo_surface_destroy(m_surface.release()); That will tell the unique_ptr that after this line, it no longer owns the _cairo_surface, and that it shouldn't destroy that itself.
 
@JimNorton Looking at the error message from the destructor, I have a feeling you might be double-deleting the surface. Can you show that code?
 
5:12 PM
@Prætorian he's using the default deleter still, so I don't think he is
 
@LucDanton We use the English words. It's quite common for computer stuffs.
 
The time of our return is coming. Our numbers will darken the sky of every world. You cannot escape your doom.
And from that, we ended up with the Starchild.
 
@TomW Brazil was once Portugal's America, yeah :P
 
@MooingDuck Only if he releases it, but IMO that's not the right way to approach this problem. He should be using a custom deleter instead of default_delete
 
@R.MartinhoFernandes ...except in France, where it's grounds for execution. :-)
 
5:13 PM
@DomagojPandža What did you smoke?
 
@Prætorian yes, but one step at a time :)
 
@R.MartinhoFernandes 250 hours of Mass Effect.
 
@MooingDuck :)
 
It literally blew up in my face.
 
@R.MartinhoFernandes Is it also the case that in Portuguese 'library' is a false friend where the same root really means 'bookshop'?
 
5:13 PM
@JerryCoffin Brazilians tend to just grab the English words and stick Portuguese declensions (I think that's the word) on them. It's horrible.
 
Ok now I get compile errors here:

void CairoImage::SetSurface( cairo_surface_t *s )
{
	m_surface = s;
	m_size.first = cairo_image_surface_get_width( m_surface.get() );
	m_size.second = cairo_image_surface_get_height ( m_surface.get() );
}
 
@JimNorton You also need to use reset here.
 
How do I assign a raw pointer to the smart pointer m_surface?
@LucDanton ok
 
@JimNorton m_surface.reset(s);
 
5:14 PM
No.
 
@LucDanton I always forget about that method :/
 
Silly duck.
 
I appreciate the help... this stuff is no at all obvious for a beginner
 
0
Q: Remove Blank Line In Between Select Queries When Spooling to CSV File

roostersignI'm using oracle sql developer in order to spool some data to a csv file. So far I have this in one file: SET head OFF; SET echo OFF; SET termout OFF; SET verify OFF; set colsep , set pagesize 0 set feedback off @sandbox.sql Sandbox.sql contains this: spool "C:\TEMP\test.csv" select 'Date...

Someone took "title" too seriously.
 
@LucDanton Yeah. We use "biblioteca" (from latin bibliotheca) for "library", and "livraria" (from latin librarium) for "bookshop".
 
5:15 PM
And I haven't really opened a book yet on C++
 
@JimNorton bad mistake
 
@JimNorton Btw when you do finish the code so that it compiles again and (presumably) works, you might do well to still ask for comments here (or on CodeReview I guess).
@R.MartinhoFernandes Right, but which do you use for software libraries?
 
And then write it in Haskell.
 
@LucDanton The former. But it's hard to get people to use the correct one, because of the English one. You often hear people slip a "livraria", even those that know that's wrong. (And I always get it right! I swear! If someone says otherwise, they're liars! If you hear me say otherwise, you're hallucinating! Now shut up)
 
@FredOverflow Yeah I'm doing this for work... and I'm just trying to convert a small C app to C++ to make it easier to integrate with a much larger C++ application.
@LucDanton Ok will do.
 
5:18 PM
At the risk of invoking nerdrage, what do people think of "The C++ Programming Language", the original, by Stroustrup?
 
Never heard of CodeReview is that codereview.com
 
@TonyTheLion No, assignment has to deal with the old state.
 
It's the only C++ book I own
since I don't code C++, I haven't really used it as a learning resource
 
@TomW That's what I learned from.
 
@R.MartinhoFernandes The same applies for French. I don't think I've heard someone use bibliothèque (in the software context) other than for pointing out that very issue.
 
5:18 PM
@JimNorton Code Review
 
@TomW Good as a reference, not so good as a primer.
 
@R.MartinhoFernandes awesome...
 
@JimNorton Can you provide the ideone links again?
 
@FredOverflow I got that impression, it describes features, but not how to get things done
 
TD&E from Bjarne is also awesome, for gaining further insights.
 
5:19 PM
Yep... let me re-create them now that my code has changed.
 
But we fucking need a new edition.
 
If you are a beginner though (but what kind? programming beginner or C++ beginner with experience?) then I don't know if Code Review is okay with that. Might want to make sure.
 
@LucDanton Here, it's more common. I'd say 50-50, probably. It's a war we're still waging!
 
Use gist if you don't execute code.
Versioniiing.
 
My main issue with C++ and the reason I don't use it is that it seems to provide so many ways to do the wrong thing
 
5:20 PM
@JimNorton That could be dangerous.
 
@TomW It's terrible and tools are terrible and learn Haskell.
 
@DomagojPandža I always carry TD&E with me on the train.
 
@TomW You can choose your poison! Ain't that great?
 
5:21 PM
@R.MartinhoFernandes quite. The problem is me, not the language
 
Never blame the tools, blame the operator
 
"I'll have three doses of cyanide please. No, wait, make that two doses of iocaine powder. I need to build an immunity to that."
 
When is Lounge<C++> going to become Lounge<C++, Haskell, Python>? :$
 
but if I need to get work done, thumping my head and shouting OH NOES ME DUMB won't earn me my paycheck
 
Lounge<typename T>
4
more generic
 
5:22 PM
Second.
 
I'd be fine with just calling it "Lounge".
 
template <language L> room Lounge;
 
But then meta will go blahblah non technical.
 
rename the Lounge
 
Throw an exception on C!
 
5:23 PM
@R.MartinhoFernandes I already said that, slowbot.
 
metapigs.... lol
 
I may have gone too far with that one.
 
Metapigs. Made of win.
Well, the term, not the actual metapigs.
 
Meatpigs.
 
Lounge<C++>: Where metapigs are not welcome if no Bacon
 
5:24 PM
Tasty.
 
@CatPlusPlus That's redundant.
 
@FredOverflow Here is the current state of things: pastebin.com/Uxv5rYZZ
 
the actual metapigs are made of things that can be used to make up any variety of actual pigs
 
room topic changed to Lounge<class T>: Ha-ha, didn't use typename. [c++] [c++11] [c++-faq] [fun]
 
Pigs roll in shit and then we eat them. They remind me of C++. First, you learn about all the shit and you still decide to use it.
 
5:25 PM
you bastard!
 
Or maybe something like this.
 
@CatPlusPlus Classy.
 
@JimNorton Alright. Then I suggest that you fix your use of release. Since you're a beginner I suggest you remain highly cautious about the use of release. Let me write an example of how I typically use std::unique_ptr as a member.
 
room topic changed to Lounge<typename... Ls>: Variadic lounge ahoy. [c++] [c++11] [c++-faq] [fun]
 
Here is the current state of things: pastebin.com/Uxv5rYZZ

So now it looks like my destructor has to be re-worked
 
5:26 PM
@DomagojPandža We only eat the insides.
 
@LucDanton Ok
 
Well, scratch that. Humans eat pretty much every single part of pigs.
 
Along with bananas, they're the perfect food
 
but who's going to unpack the variadic arguments to the Lounge?
 
@R.MartinhoFernandes Precisely, getting past the surface! Getting to know the pig, being intimate with it. With its organs.
3
That sounds so wrong.
 
5:27 PM
Pigs are awesome!
 
In context with Domagoj's sentence when taken out of context, that sounds wronger.
 
Something I've always been wondering about...
Can you anger a pig?
I mean, to attack you.
 
@JimNorton Personally, I'd also make SetSurface take a unique_ptr, so it's clear that the caller is passing ownership to the object, and makes your implementation code cleaner.
 
I'm sure when mommy pig has little one's and you try to steal them, it won't be so happy
 
@DomagojPandža they're vicious bastards
 
5:28 PM
and have you ever seen a bull pig? you don't want to anger it.
 
If you try to take food off them they'll have your hand instead
 
@DomagojPandža Wild boars are known to attack hunters.
 
but you don't want to anger a Lion either :P
 
Dunno about domestic ones.
 
@MooingDuck Ah that makes sense
 
5:29 PM
We need a pig expert!
 
I'm not sure we do.
 
Well, I did unspeakable things to my grandma's pigs.
 
I worked on a pig farm once
 
None of them seemed to care.
 
I'm pissed. I had 60 some days consecutive. I had a dinner party to prepare for saturday, and I only got on the computer at 8pm. Then I remember I hadn't done my SO visit for the day...
 
5:29 PM
@TonyTheLion I've written code in both BASIC and Fortran. I'm pretty sure that qualifies me.
 
all that bacon, I had to deal with all the time
 
@Drise Bahahahah!
 
@JerryCoffin lol
 
@Drise I have SO bookmarked on my phone on the main screen
 
I have hunted wild boars. The bastards are smart.
 
5:30 PM
what?
 
Boars.
 
@MooingDuck I didn't have my phone on me the whole day. Mostly so it could charge... Otherwise I would have seen the "Recent C++ questions..." email.
 
I have hunted zebra's and buffalo
 
@Drise barbarian
 
Btw, boars are not related to bears.
 
5:30 PM
What's "and buffalo" and why did zebra have it.
 
scratch that, my Lionesses have hunted...
 
@CatPlusPlus Grammar nazi, I approve.
 
:4639367 So then that would look like:

void SetSurface( cairo_surface_t *s );   // orig

to:

	void SetSurface( std::unique_ptr<cairo_surface_t> s );
 
@TonyTheLion Ha! Freudian slip! You're not in a pack!
 
how do you know that?
for sure
 
5:31 PM
We're all in a pack. Variadic template pack!
 
struct cairo_destroyer
{
    void operator()(cairo_surface_t* p) const
    {
        cairo_surface_destroy(p);
    }
    void operator()(cairo_t* p) const
    {
        cairo_destroy(p);
    }
};
class CairoImage
{
    std::unique_ptr<cairo_surface_t, cairo_destroyer> m_surface;
    std::unique_ptr<cairo_t, cairo_destroyer> m_cr;
    // ...
 
@TonyTheLion You say you hunted. Male pack members don't hunt.
 
@JimNorton And then replace m_surface = whatever with m_surface.reset(whatever) and return m_surface; with return m_surface.get();. This feedback is based on your old ideone links which I found again, haven't looked at the new links yet...
 
@CatPlusPlus Or pack of beer.
 
Or pack of bear.
 
5:32 PM
boar
 
Not related.
 
We need protect our right to boar arms.
 
@CatPlusPlus The kind of thing you don't want to drink.
@CatPlusPlus Why do you want your arms to be bored?
 
I don't like that new title.
 
5:32 PM
@JimNorton I would keep the unique_ptr an implementation detail. Oh wait, I'm not sure yet...
 
@CatPlusPlus You wrote it.
 
room topic changed to Lounge<C++>: Resuming our scheduled programming. [c++] [c++11] [c++-faq] [fun]
 
It still implies C++
 
@CatPlusPlus change the tag line to "we're packed"
 
Besides, sbi'd be grumpy.
 
5:33 PM
@FredOverflow Ok thanks... I will give it a try... I appreciate it very much.
 
@CatPlusPlus He's always grumpy.
 
@CatPlusPlus sbi'd ??
 
 
@FredOverflow In this case, it seems like it's really part of the interface. The function "takes ownership of a <thingy, what is it again?>", hence unique_ptr.
 
@JimNorton There you go.
 
5:34 PM
@CatPlusPlus What, we have a schedule now?
 
Sure.
It's empty.
 
@JimNorton You definitely need the custom deleter, because with std::unique_ptr<cairo_surface_t> m_surface; the destructor would delete the surface, but that's totally wrong; it must be cairo_surface_destroyed.
 
@FredOverflow Taking a unique_ptr parameter doesn't imply unique_ptr storage, btw, since you can always release the thing and stick it somewhere else.
 
@EtiennedeMartel Schedule: "Flaming and whatever else we want, 24/7".
 
5:34 PM
Lounge<C++> schedule: 24-7 chat
 
@chris Tesseract detected!
 
@R.MartinhoFernandes I'll think about that in the kitchen. See you guys again in 30 minutes.
 
Cat Plus Plus has added an event to this room's schedule.
 
5:36 PM
@DomagojPandža, Where‽‽‽
 
@chris Your avatar. :P
 
@CatPlusPlus What kind of even is that?
 
@R.MartinhoFernandes An odd one.
 
@CatPlusPlus What kind of even event is that? FTFY
 
I figured anything higher than 4D was a bit much
 
5:37 PM
It is odd that it is even, even though it would be odd to call it even in the first place.
 
Nobody will ever need more than 4D.
 
@CatPlusPlus Probably ought to make that recurring -- 10 minutes a week sounds about right! :=)
 
Ell
I made a c++ thin cairo wrapper a while back
Didn't really do anything with it
 
5:38 PM
how do you measure the thickness of a C++ wrapper anyways?
 
@TonyTheLion With sizeof, of horse of course.
 
With a caliper.
 
Ell
@TonyTheLion With a tape measure, of course
 
room topic changed to Lounge<C++>: Resuming our scheduled programming chatting. [c++] [c++11] [c++-faq] [fun]
 
@TonyTheLion The cheap version:
 
5:39 PM
Cat Plus Plus has added an event to this room's schedule.
 
lol, it strikes out in the message, but not in the tagline itself.
 
morkdown fail
 
And the more expensive one:
 
SO MANY EVENTS!
 
5:40 PM
We're embracing event-driven chatting.
 
I wonder who's the schmuck who wrote the message "parser".
 
> Now you see us
wtf kind of an event is this?
 
OMG I hate netbeans. Everytime I paste anything it scrolls >.<
 
@TonyTheLion A lame joke.
@MooingDuck Use vim?
 
uber lame
 
5:41 PM
@MooingDuck are you doing c++ in netbeans?
 
Eclipse is better than NetBeans.
 
@TonyTheLion Hey, now you're hurting my self-esteem.
 
hope not
 
And that's saying something.
 
@CatPlusPlus Wow.
 
5:41 PM
@MooingDuck ...and you expected something written in Java to work well?
 
How's that even possible.
 
@keith.layne java
@JerryCoffin I prayed
 
@CatPlusPlus I believe it. This is pretty silly
 
@LucDanton In your template example, is the beginning "imaginary C api" stuff required?
 
5:42 PM
Too bad NetBeans is the "official" IDE of Java.
 
@JerryCoffin ...and you expected something written in Java to work well at all? FTFY
 
@MooingDuck Don't take it as a recommendation to use Eclipse, though.
 
Event starts in two minutes woo.
 
Too bad Java was ever invented
5
 
@JimNorton The imaginary API is just to exemplify the kind of API you're wrapping.
 
5:43 PM
I think the world started going downhill the day Java came into being
 
Ell
I need help with database design >.<
 
Register yourself while you can.
It'll only repeat every day forever.
 
@TonyTheLion Good point.
 
I'm registered
 
5:43 PM
@MooingDuck I'm not just using Netbeans, I'm using the Netbeans "rich client platform". I'm such a whore.
 
@JimNorton resource would be cairo_something_t, make would be cairo_create_something, and destroy would be cairo_destroy_something.
 
Java: the only reason to embrace your apathy
 
@TonyTheLion Not true. The total amount of crap in the world is pretty much a constant. By concentrating so much crap into one place, Java actually made the rest of the world better.
 
Ye gods that last pizza I have is so hot-pepper-hot.
My face is burning.
And I ate a piece 10 minutes ago.
 
5:44 PM
@R.MartinhoFernandes Ok thank you.
 
It had a fuse.
 
@JerryCoffin it didn't remove any of the other crap by doing that, notice PHP
 
@TonyTheLion PHP made the world even better!
 
pepper-hot-pepper?
 
@TonyTheLion Ah, but it did. Notice that PL/I no longer sees much use. Given the mass of PHP, it just needs a somewhat larger black hole than Java to suck it in.
 
5:45 PM
PHP is the sole reason I went into apathy
 
@CatPlusPlus Weakling.
 
@TonyTheLion If it were not all the good things like boobs concentrating away the goodness, PHP would have made a paradise out of this world.
 
@keith.layne The PHP of pizzas.
 
@R.MartinhoFernandes boobs are in Haskell
 
> An event is starting 1 min ago in Lounge<C++> - "Today we're making fun of you."
THANKS CHAT.
I WOULDN'T KNOW.
 
5:46 PM
> An event is starting 1 min ago in Lounge<C++> - "Today we're making fun of you."
GG
 
Nice grammar.
 
@CatPlusPlus Everyone, in every room, knows.
 
(o_O) ?
 
Not like I added it or anything.
 
I was the slowest, therefore I didn't have to delete mine.
 
5:46 PM
@EtiennedeMartel Mwahahahaha
 
Not really, only people who were here recently.
And happen to be chatting right now.
 
It makes for a hilarious effect, though.
 
java doesn't have a nullptr_t equivalent does it?
 
5:47 PM
Why would it?
 
@MooingDuck Object?
 
An event is starting? what is this I don't even
 
@DeadMG Basically, it's saying "You're late, even though you're already here."
 
Java doesn't have pointers
or does it?
 
@MooingDuck No.
 
5:48 PM
null is implicitly convertible to any reference type. But it has no type.
 
Ell
It has references
 
It never had pointer arithmetic or any nonsense like this, so no need for a null type.
 
must stop eating cookies
 
> Upcoming events: 3 mins ago Today we're making fun…, in 17 hours We're now coding., in 24 hours Now you see us.
 
Ell
what is pointer arithmetic for in c++?
 
5:48 PM
@CatPlusPlus operator overloading. We had a function that took a string, I added a overload that took a Calendar. Now all calls passing null fail
 
@TonyTheLion Yes, it does. It's just schizophrenic about it, publicly refusing to admit it does, even though anybody with a brain knows better.
 
@Ell, arrays for one.
 
@Ell int* ptr = &thing; ptr += 34;
 
I knew it
 
@MooingDuck What.
 
5:49 PM
There, I got a picture of kittens as my desktop wallpaper.
 
I love kittens
2
 
@TonyTheLion It's not a cookie, it's a newton!
 
Ell
@MooingDuck but what would you use that for?
 
@Ell that's how arrays work
 
5:49 PM
so today was an entire waste of time, like any other day
 
@Ell and C-style iterators
 
@MooingDuck Ewwww, passing null.
 
Pointer arithmetic makes your life miserable.
 
Ell
@MooingDuck but std::vector and std::array indexing isn't pointer arithmetic is it?
I mean, in the implementation it might be
 
yes, but no!
 
Ell
5:50 PM
but you use the [] operator?
 
@Ell Right. Or .at().
 
Ell
yeah. so what do you use pointer arithmetic for?
@MooingDuck c-style iterators?
 
arithmeticking pointers, duh
 
@Ell Implementing everything. And UB.
 
5:51 PM
@Ell go to the next element in the array the pointer is pointing to an element of
 
Uber Bananas!
 
@Ell you can use it as a replacement for [], but you shouldn't
 
int * p = &somearray[0]; p++; // p now points to somearray[1];
 
but you're tempted....go try it!
 
Every time you add something to a pointer, an unicorn dies.
 
5:52 PM
tony, c'mon, we do ++p here.
 
I don't care about unicorns
 
@FredOverflow lol @ Cairo Destroyer.
 
whatever
 
@TonyTheLion WHAT?
 
auto it = std::begin(somearray); ++it; // fixed, no pointer arithmetic
 
5:53 PM
@EtiennedeMartel I DON'T CARE ABOUT UNICORNS
is that clear enough?
 
@CatPlusPlus farbeit from me to correct you twice in one day, but it's "a unicorn". English FTW.
 
Ell
what I was asking is does anyone use pointer arithmetic in c++ for sane stuff? I.e. is there usually a better alternative?
 
That makes me sad.
 
@TonyTheLion I do. Unicorns are yummy. Hi I'm a member of PETA: People of the Eating of Tasty Animals.
 
@R.MartinhoFernandes So then would this look correct? And do I assume the destructor needn't be defined? It's implicit?

class CairoImage
{
public:
    CairoImage();

private:
    // Introduce alias to help with verbosity
    using surface_type = std::unique_ptr<cairo_surface_t, void(*)(cairo_surface_t*)>;

    surface_type m_surface;
};



// Constructor
// pass dispose as deleter -- you can pass &deleter, too
CairoImage::CairoImage() : m_surface(make(), dispose){ }
 
5:54 PM
@Ell No. Yes.
 
@JerryCoffin didn't know you could eat a horse with a horn on it
 
@Jim Oh yeah, and get rid of your destructor! The point of unique_ptr is that you don't need a destructor anymore.
 
Ugh. Some dickhead turned off ClearType...
 
@TonyTheLion Horny horses are easy to eat, once you catch them.
 
5:55 PM
lol
 
@Ell yes
 
@JimNorton Yeah. no explicit destructor. That's what unique_ptr is for: rule of three in a neat package.
 
needs more rainbow
 
@JimNorton correct, you've got it I think
 
5:56 PM
@Ell Well it's more customary (at least for me) to write code towards iterators. Which pointers are. No idea if that counts for you as using or not pointer arithmetic so I'll let you be the judge of that.
 
Did I miss the making fun of?
 
we're still doing it
 
yay!
 
you're the next target. since you entered last :P
 
i haven't been laid in three years, get at me
 
5:56 PM
@Shog9 You didn't miss anything. The cat's being silly, and the making fun of hasn't started yet.
 
@Steve /r/gonewild much?
 
@Steve I have a solution to that: fap
 
@Shog9 Yes, you totally missed it. Nobody ever makes fun of anyone in here. Especially not moderators.
 
lmao
 
Ok now that I have a basic class with a constructor using unique_ptr,  how would I implement the following from the old code in the constructor?


CairoImage( std::string);
 
5:57 PM
@LucDanton Pointers munge together way too many concepts. It's a rebindable reference! It's an optional value! It's an iterator!
 
@DeadMG Well, I thought that sounded unusual. Would hate to think I couldn't take everything said here at face value!
 
@ecatmur It's a Swiss Army pointer!
7
 
MY EVIL PLAN IS WORKING. Nothing's happening.
 
Ell
Why hold a unique_ptr in the class with a custom deleter, when you can just hold a cairo_image in the class and cairo_image_destruct in the class destructor?
 
5:58 PM
@Ell Rule of three.
 
@Ell Because unique_ptr is tested RAII primitive.
 
@CatPlusPlus you had an evil plan??? I never expected that from you sarcasm
 
@Ell because he has to use a 3rd party allocator/deallocator
 
this event isn't very offensive
 
brb .... nature calls
 
5:58 PM
@Shog9 Well, I'm glad to reassure you that we are all straight as a whistle. Never have any subtext or sarcasm or any such thing.
 
@Steve Well, fuck you.
 
you want offensive?
 
@DomagojPandža thats more like it, lmao
 
Piss?
 
5:59 PM
lol
 
Please don't.
 
Ell
@R.MartinhoFernandes so he doesn't have to implement a copy ctor, dtor etc. ?
 
I offended everyone.
 
goatse.cx <--- offensive
 
5:59 PM
I win.
 
Pffft, upstart.
 
Ok, I'm going home before the shoggy turns on me.
@Ell Right.
 

« first day (646 days earlier)      last day (4310 days later) »