« first day (1597 days earlier)      last day (3577 days later) » 

16:01
Good morning!
I woke up late.
Xeo
Xeo
@thecoshman I thought you were pruning the cruft! Any chance we can get the full example, including map usage, on Coliru? Just make everything dummy
@Nooble good morning :)
@Xeo std::map<std::string, gldr::texture2d> myMap; vOv really isn't much to the usage
@thecoshman btw why Glid(Glid&) /* = delete*/;? Should be Glid const&
similarly for the assignment operator
@YourFriend What do you mean by "desktop application"?
16:03
for the assignment yes, but for the 'deleted' method? why does it matter?
@Nooble windows applications like Invoice Generator, Anti Virus, Inventory System etc
also why is an ID non-copyable?
@thecoshman conventional copy operations take T const&
Xeo
Xeo
@AndyProwl Because cloning the id would mean cloning the texture or whatever, I think
@YourFriend Ahh. I suppose you can either use C# forms or Qt for that.
Xeo
Xeo
non-copyable seems like the correct choice.
16:05
@Nooble Qt with C++?
@YourFriend I remember the antivirus BitDefender makes is written in C++ and assembly
@AndyProwl you don't want two things owning the resource
and the UI that drives it is some weird stuff like HTML5
@YourFriend Yes.
@Xeo Ah, yeah, I figured
16:05
@Nooble what's your favourite framework for making applications in C++?
It's not just an ID
@AndyProwl actually no, as it can't be
Xeo
Xeo
what
@AndyProwl no, hence we didn't just use an int
user784668
lol wtf
16:06
@thecoshman what can't be?
user784668
liverpoop won against shitty
@Xeo Seems to me like it's duplicating unique_ptr with a custom deleter.
Xeo
Xeo
Make the copy ctor and assignment operator take Glid const&.
@Puppy ye
@YourFriend If I wanted to make a GUI, I'd use Qt. For anything else, I'd just use the standard library :P.
@AndyProwl maybe I'm thinking of something else.
@Xeo in glid right?
Xeo
Xeo
16:07
ye
@Nooble standard library is written in C++?
@YourFriend Yes.
@Xeo but the copies are deleted... so how does their constness matter?
Xeo
Xeo
They aren't deleted, just inaccessible.
huh, well that fixed it up alright
16:09
@Nooble have you created something yet in that Qt thing?
so what was going on there?
Xeo
Xeo
Not quite sure, with VS and all...
@YourFriend I've made a launcher for my OpenGL application. Nothing fancy, Qt is pretty much just drag and drop and event handling.
Xeo
Xeo
Just be happy it works now :P
@Xeo I'm not using VS vOv
or would removing those altogether have fixed that up too I wonder...
16:12
@thecoshman Yes, in GCC
Why the OP's discussing with Vlad and not with me?
0
A: C++ Special member functions

Vlad from MoscowIf you would read the Standard more closely you find that special member functions are those functions that the compiler can declare implicitly if you will not declare them explicitly. From the C++ Standard: 12 Special member functions [special] 1 The default constructor (12.1), copy const...

indeed it would :D
In VS, not sure
What was the actual problem, @thecoshman?
@πάνταῥεῖ Vlad is an authority
16:13
You never showed us a compilation error, as far as I can tell...
You really suck at this.
@LightnessRacesinOrbit the 'removed' copy functions weren't taking const things
Also was it not a linker error, by any chance?
@thecoshman "weren't taking const things" is not a solid, scientific, problem description. Can you do better than that?
@LightnessRacesinOrbit if you need the compiler to tell you what is wrong, you suck :P
@AndyProwl LOL Ka-Tsching!
@LightnessRacesinOrbit T(T&) instead of T(T const&)
@LightnessRacesinOrbit probably. will I? certainly not
similarly for operator =
@AndyProwl No, that is the proposed fix (spelt backwards). I am asking what the problem was.
@AndyProwl yeah, I got confused because for the move operators, I have to take mutable.
16:14
@LightnessRacesinOrbit Ah, OK. No idea
@LightnessRacesinOrbit ... I was taking T& instead of Tconst&
Well, T(T&) is a valid copy constructor. So...
@thecoshman For fuck's sake, man.
I KNOW YOU HAD A NON-CONST COPY CTOR PARAMETER WE ALL KNOW THAT IT'S BEEN SAID FIFTY TIMES
2
what was the problem you were experiencing that you think is due to it?
jesus fucking christ
Xeo
Xeo
chill
@LightnessRacesinOrbit it didn't compile :P
16:15
You chill
You've gotten really bossy lately, @Xeo. Mind your own damn business.
@thecoshman With what error message?
user784668
Chell
Shill
@MartinJames for replacement room owner!
@LightnessRacesinOrbit hang hang on, re-broke it, just for you. where you want it pasting?
user784668
@LightnessRacesinOrbit for room owner!
@Fanael for room flower!
lol, kicked for pointing out a fact about a room owner's behaviour. And you think that's going to make me "chill"? idiot.
@thecoshman I dunno, anywhere?
user784668
@LightnessRacesinOrbit Wrong Chell
@LightnessRacesinOrbit enjoy
Xeo
Xeo
@LightnessRacesinOrbit Sue me. But I've found that all the banter, raging and unconstructive "discussions" lately have been getting on my nerves a lot. You especially should understand that, always talking about keeping things civil in here.
@LightnessRacesinOrbit Fun fact: I haven't kicked you.
user784668
16:23
@Xeo As if there was ever a constructive discussion in the lounge
Xeo
Xeo
There have been. Lots of them.
And I'd like to keep it that way.
@Xeo Look, you can kick me as many times as you like, and for as long as you like. It's not going to stop me from pointing out, each and every single time, that kicking people to stifle criticism about you is not a fun way to be. Furthermore, it contradicts the declaration that you want people to "chill", as you full well know that that will not be the resultant effect. I suggest that you chill, step away from the computer for a while, and think about what it is that you're doing here.
inb4 kicked again
@Xeo In case anybody cares, I was the one who kicked him (twice).
despotism is fun!
Xeo
Xeo
3 mins ago, by Xeo
@LightnessRacesinOrbit Fun fact: I haven't kicked you.
user784668
16:25
@JerryCoffin Prove it.
@Xeo If it's "getting on your nerves", take a break, do something else. No-one's forcing you to read this chat room. That was your decision so don't take it out on everyone else.
I'm going to go back to helping Cosh now. Is that okay with everybody?
@LightnessRacesinOrbit erm... help is done...
@thecoshman You said you broke it again
And I don't think anyone yet understands truly what was going on with the code
@LightnessRacesinOrbit no, I re-broke it get the compile error for you
Don't you want to understand it?
16:26
see, having fixed it, the compiler errors went away.
Well if that's all you care about
Strange sort of programmer!
Anyway, yeah, I can't reproduce it here.
well yeah I would like to know what was wrong...
@LightnessRacesinOrbit Just drop it!
iirc you didn't re-create it accurately
@Jefffrey lol
@Jefffrey nice callback
16:27
@Xeo really? first they're adding it, then removing it?
@Jefffrey Drop the gun!
@Fanael I'm not sure any proof is available. I guess I could have taken a screen shot while doing it, but it didn't occur to me at the time that it was a worthwhile thing to do.
@melak47 see also: concepts
but now microsoft's already implemented it! now it's never going to go away :p
@thecoshman I don't know what "it" is, yet. I keep asking for an SSCCE, or any information that can help me to reproduce it. You keep not coming through.
16:28
@LightnessRacesinOrbit I've linked to stuff
user784668
@JerryCoffin So you didn't do it, and @LightnessRacesinOrbit left on their own accord.
You spend enough time in the Lounge to know what sort of question asking approach we hate! :P
@Fanael Please just leave it. The less I'm associated with that man the better.
Thanks though
Guys guys guys important news
@LightnessRacesinOrbit The kicking wasn't done to stifle criticism about Xeo or anybody else. It was done because you were making personal attacks on other people here (and there was no hint of if being an attempt at humor or anything similar, either).
I'm out of food again
what the fuck what do I eat help
user784668
16:30
@LightnessRacesinOrbit Starve.
Personal attacks are good.
and don't say pizza
@Jefffrey I can't eat personal attacks
user784668
@LightnessRacesinOrbit So learn to?
If I don't want to hear personal attacks I just plonk people.
@Fanael might starve in the meantime -.-
16:30
No need to kick them.
@Jefffrey who the heck made a personal attack? lol
user784668
@LightnessRacesinOrbit That was my plan, crap.
@LightnessRacesinOrbit You having Jerry plonked is going to be a problem.
Is Jerry pretending that "you've gotten really bossy lately" and a request to "mind your own damn business" are now "personal attacks"? lol
16:31
you guys are in a good mood today :D
He was replying to you actually.
shrug
Shame.
I'll be back when you lot are ready to follow your own rules and talk about C++ again.
And, hopefully, with some food in me...
Don't do this drama thingy, please.
user784668
What's the point of atomic_signal_fence?
@Jefffrey Eh? I'm the one walking away from the drama. So you accuse me of doing drama. Weird.
16:33
You dramaqueen.
user784668
@Jefffrey Yes?
at least I'm not an actual queen :)
@Fanael "atomic_signal_fence can be used to specify the order in which actions performed by the thread become visible to the signal handler."
Speaking of crybabies, TIL:
63
A: Should you pick a baby up everytime it cries?

anongoodnurseBabies cry. Maybe it helps to know what an infant's 'normal" crying pattern is. Fuss/cry durations peak in the first 2 months (peaking average: 6 weeks), are highest in evenings, and decrease approximately 50% by 12 weeks of age. So, the first two months are the worst. Also, not all infants are a...

@LightnessRacesinOrbit I'm an actual king.
16:35
@Nooble King of the Koala jungle?
@LightnessRacesinOrbit Yes.
@Nooble How did you change your name from Nooble to YourSomething and then to Nooble again is less than a month?
@Jefffrey Lol.
¬_¬ yay... now I can't insert into this map...
That guy wasn't me @Jefffrey
16:37
I know there was a trick to do that, but I though they fixed it.
oh
@Jefffrey It's an avatar theft
wait a minute... if my type is moveable... the point of that is that I can just 'return it by value' and it will actually be moved... right?
@LightnessRacesinOrbit So you claim you're going to leave until people are ready to discuss C++, then turn around and immediately post a link that's not even related to programming, not to mention C++.
If you look closely you'll see that @YourFriend is still here
may I'm just wrong with this shit.
16:39
@thecoshman Yeah.
@thecoshman it's one of the implications
Although sometimes you have to std::move(…) to transform a would-be copy to a move.
@LightnessRacesinOrbit funny
@Jefffrey I'm not joking
16:40
I meant that avatar theft is funny
user1804599
hi
As in I was being sarcastic
Xeo
Xeo
@LucDanton The cases were you need to are becoming fewer and fewer, though!
@LucDanton right... but what would cause something to attempt to copy? especially when the copy is not accessible?
@LightnessRacesinOrbit Impersonation of the king is punishable by death.
16:41
@thecoshman e.g. const value, unless your move constructor takes const&&.
@thecoshman e.g. returning a unique_ptr<D> local lvalue (return p;) when the function's return type is unique_ptr<B> (where D derives from B).
user784668
@Nooble Impersonation of the death is punishable by king.
impersonating death seems like it'd be asking for trouble
@Fanael Death is impersonation king by punishable.
no... not doing stuff like that @LucDanton @AndyProwl
16:42
don't mess with Death, that's my advice
@thecoshman You need to show us teh codez
Attempting to return a local reference, as well. Or not so local, really. So e.g. return c["blah"]; won’t work
user784668
@jalf Why?
How is the modules proposal going?
Is it going at all?
user784668
@jalf It's weird seeing this advice from you, as you'd outjalf Death pretty easily.
@AndyProwl just trying to work out where I am going wrong.
@thecoshman show how you're doing the insertion
@AndyProwl Still far away, eh?
@Nooble why you don't use VS?
16:44
@AndyProwl texutres.insert("reference_cube", texture);
:P
@Jefffrey That's my impression
@thecoshman std::move(texture)?
Otherwise you're copying it
@thecoshman What is the declaration of texture?
(assuming texture is the non-copyable thingy)
let me just move things around a bit to see what exactly is breaking shit
@Fanael But I think the benefit of me jalfing Death doesn't really compare to the risk of getting deathed by Death
16:45
Or you could, yknow, make an SSCCE.
choose your battles, imo
@thecoshman try to std::move() things around a bit :P
user1804599
std::copy
std::make_sscce
GOLDEN GRAHAMS, BITCHES!
I trie... I tried so hard, but it's like shitting glass shards. I just can't put up with it.
16:51
show more context around textures.insert("reference_cube", texture);
No, it's nothing like that.
especially the declaration of texture.
Also, does std::move(texture) not fix it?
7 mins ago, by Luc Danton
@thecoshman What is the declaration of texture?
hang on, working on coliru
16:52
Is there an easy way to onebox snippets of github code that link to the original? I found a funny line in clang :)
Just pasted it here and click fixed font
that's the easiest way
where do you click fixed font?
> Have you seen this typename? Please call Microsoft!
8
¬_¬ at least the sscce is borken in the same way.
for me, no amount of moves fixed shit up
16:55
fixed font doesn't always show up.
I haven't got it right now, for example.
when you have two or more lines
that's why there are two lines in the image
@Jefffrey oh. Never noticed that
it's new
@Jefffrey no it's not...
@thecoshman std::make_pair()...
16:57
@thecoshman ok
@AndyProwl huh?
@AndyProwl wtf?!
@thecoshman The value type of a map is std::pair<...>
what the hell sort of bollocks is that?
If you don't want to use std::make_pair(), you have to use emplace
why can't I just do map.insert(theKey, theValue);
16:58
@πάνταῥεῖ Vlad is more approachable. Not so.. elitist
@AndyProwl Why private?
Also in your original SSCCE the operator = returns foo instead of foo&. If your original code does the same, you should fix that too
@Jefffrey It was in the original example
@thecoshman Because insert() takes a value_type, which is pair<K const, V>
@thecoshman If you had a pair (e.g. from iterating over a map) you would have the opposite problem of having to project the elements.
@AndyProwl *this
@thecoshman I mean the return type
16:59
Well, fair point. I never want to sound elitist though.
I've just mentioned the standard section where the operator&() is actually covered.

« first day (1597 days earlier)      last day (3577 days later) »