« first day (948 days earlier)      last day (4001 days later) » 

9:01 AM
Oooh, I broke a unit test due to overloading optional<T>::operator*() &&. Fun!
By 'broke' I mean that the test is now expecting the wrong behaviour.
 
just noticed
8
Q: Ignored users still appear in the 'other rooms you're in' message preview

rlemonWell it might not be a huge issue to some (I suppose it depends on how you use the chat system) but when I "Ignore this user everywhere", their messages still appear on the sidebar for the 'other rooms you're in' if they say something. Albeit I can ignore this feature and the text within it, I ju...

 
@LightnessRacesinOrbit there's a fly on your head
 
Oh um, make_optional<T>() makes an empty optional. That seems wrong.
 
@melak47 must be on your monitor
 
amazing, this fly can teleport! when I drag the window from one screen to the other, there it is!
 
9:06 AM
@melak47 it's clever
 
Why does conditional_variable::wait_for exist if there are supurious wakeups?
 
To time out when needed.
 
yes, but it cold spurious wake
I just want to implement a sleep+condition variable
 
Have you taken a look at the whole interface?
Not just that one overload of wait_for (there is another one).
 
321 items on my desktop..I need to clean this shit up some time ._.
 
9:13 AM
uh crap
 
@melak47 Got 99 icons but PHP ain't one?
 
I already failed one subject at uni.
because fuck me.
 
@ThePhD lol
@BartekBanachewicz which one?
 
yeahs thats quite bad
 
@melak47 Numerical Methods :/
 
9:14 AM
2+2=?
 
ternary operation
 
that's because the guy is an asshole and I failed one assignment. He won't let me turn it again or do anything else
it's basically one fail and GTFO.
 
@LightnessRacesinOrbit 10
 
@LightnessRacesinOrbit Fish!
 
crap come on I don't want to be here another year :/
I just can't fail anything else.
 
9:15 AM
Oh
 
So you don't have to retake the year if you don't fail anything else?
 
then spend less time fucking around with minecraft and Stack Overflow chat, and do some work
 
Then just don't fail no problem ezpz.
2
 
that's more complicated.
 
9:16 AM
@LightnessRacesinOrbit Syntax error: assigning to r-value.
 
@MarkGarcia winner!
 
@LightnessRacesinOrbit Duh I am heading to classes soon.
 
(though that's not a syntax error)
@BartekBanachewicz your method of preparing for class is interesting
 
@LightnessRacesinOrbit Um, user error.
 
I'm heading to class, too
woo
go me ._.
 
9:17 AM
Go you. :D
ARE YOU READY FOR ANDROID FUN?!
 
@Xeo !
 
@LightnessRacesinOrbit I don't have to prepare for that one. It's Embedded, but we don't have this old fart anymore, and new guy is ok.
 
android native web app crap here I come
 
Also thanks for sending me that picture @melak47. You broke my PNG loader and I figured out a great flaw.
 
@BartekBanachewicz I see
 
9:17 AM
NOW I'LL MAKE IT WORK EVEN BETTER.
 
@ThePhD pink freud to the rescue
 
Mmm, delicious Freud.
FREUD CAN BUTTER MY BREAD~
 
Xeo
@LucDanton That definition looks mind-fucky.
 
yiz
I am thinking of deleting meta account and recreate a new one - I am question banned there. As a computer scientist, I think it is my duty to find out how various softwares/websites work
 
@ThePhD if I will be able to repeat databases exam again I will free myself some points. Each subject is rated (most of them 3,4 or 5 points), and you can't stay over 12. Well, technically you can have 13 (yours truly) or even more, but over 13 it's getting fucked up and sometimes it's better to just repeat a year.
 
9:19 AM
naaaaaaa
 
yiz
If I delete and recreate my account, I will automatically get 101 rep
 
@yiz Are your SO and meta accounts linked?
 
it's crapfuck because I turned all assignments and succeeded on all the classes, but then fucking failed the exam.
 
I might merge the typename Nullable, typename... Nullables into just typename... Nullables though. Have to check if that's not ambiguous first.
 
and BAM 5 points.
 
yiz
9:19 AM
@MarkGarcia yes
but there is a loophole I believe
 
@BartekBanachewicz heh, here it's usually 30 ECTS points / year
 
yiz
unless they plug it after they read my comment :/
 
@melak47 we have 30/semester.
 
err, yeah
semester, year, whatever
I'm tired
 
yep, that's what I thought.
 
yiz
9:20 AM
I am paranoid, I think I might be on the blacklist of the mods, they will use any excuse to perm ban me :/
 
@yiz yea that's really surprising, huh?
 
@yiz Nah. You're not that interesting for them. :P
 
yiz
My Troll Bin has been deleted by some mod today for no reasons
Not all mods, but some would want me perm banned
Most mods probably don't even know who I am
Anyways, I think various sites here are not totally syncronized
 
@yiz It may have something to do with your gravatar being a naked lady with troll and.. .. cat tits?
Just saying.
 
@LightnessRacesinOrbit yeah the previous guy said that assembly instructions that I've used are too high-level
 
yiz
9:26 AM
so if you delete account from one of them, it will be permanently unattached from your name. When you create a new one, it would be a whole new fresh start for you on that site disregard what happens on the other sites or your prevous account
 
At first I thought that was some kind of animal until I expanded it, roflmao.
 
@yiz meh, the new one will get banned sooner or later
 
yiz
@BartekBanachewicz maybe ... depends how I play my cards
 
@Xeo Completely noob user-friendly now!
 
Xeo
@LucDanton I seem to have an aversion against recursive variadics... so have this!
Although it's not short-circuiting anymore, eh?
 
yiz
9:31 AM
@BartekBanachewicz If I post anything now, it will be downvoted like a tender daffodil under heavy snow storm regardless how legit my question/answer might be. But if I wait a bit, I will be forgotten and things will all be fine again
 
Xeo
I want to have A && Bs..., or more generally, pack expansion that can refer to itself.
 
yiz
@ThePhD it got deleted before I changed my avatar
 
Oh.
 
@Xeo That's a long way to be of any use to anyone.
 
Xeo
9:33 AM
Why?
 
It's type-level.
 
Oh, right.
I was writing my own ptr_base.
'Cause reasons...
 
Xeo
Not sure what you mean.
 
I already have And.
Possibly I can change its implementation, yes, but that doesn't affect apply/nullable.
 
@DeadMG well then, that's that :)
 
9:35 AM
@yiz I don't think so. It might just be you post shitty questions
 
Xeo
@LucDanton Uhm.... yeah, nvm me. detail::non_null is used at run-time... >_>"
Seems my brain's still booting up
The AS3 is making it all mushy
 
Heh.
Oh, that's right.
My partial template specialization is failing.
 
Took me long enough to find a picture of a keyboard that needed trigraphs.
Hope it's worth it since it's on the multicollider right now.
 
template <typename T, typename TDx = std::default_delete< T >>
class ptr : private std::unique_ptr<T, TDx> {
}

// Partial specialization

template <typename T[], typename TDx = std::default_delete< T[] >>
class ptr<T[], TDx> : private std::unique_ptr<T[], TDx> {
}
^ Is that a valid partial specialization?
 
user142019
< T[] >> is worse than <T[]> >
 
9:41 AM
Yeah, GCC is rejecting it..
I wonder how I'm gonna specialize on T[] ...
 
Xeo
@Mysticial <:]{%> is all I'm saying on that account...
:)
 
user142019
If I were a compiler, I would reject your code just because it is your code.
 
@ThePhD Your basic syntax is not even correct.
 
yiz
If I were a compiler I would make your code run faster if you bribe me with extra ram :p
 
@DeadMG I figured it out, I think.
 
Xeo
9:44 AM
> There, a player has worked very hard and somehow tricked me into becoming a king of an evil kingdom.
lawl
 
user142019
template<typename T, typename TDx = std::default_delete<T>>
class ptr : private std::unique_ptr<T, TDx> { };
template<typename T, typename TDx = std::default_delete<T[]>>
class ptr<T[], TDx> : private std::unique_ptr<T[], TDx> { };
 
Xeo
@rightfold Fail
Specializations can't have default template arguments
 
user142019
@Xeo AT LEAST I HAVE SEMICOLONS AFTER MY CLASS DEFINITIONS :<
 
Hopefully it'll hold up.
 
I have just realized that if not for repcap, @Mysticial would get 71750 reputation from his epic answer
read that again. ~72k. seventy-two thousands
 
9:45 AM
woah
 
Doesn't matter: Jon Skeet.
 
The primary template declaration(s) is the expression being matched on, the specializations are the patterns.
 
yiz
@ThePhD or @JerryCoffin
 
imho it does. he has more upvotes on that question that I have rep points T_T
 
user142019
The repcap is a conspiracy between Stack Exchange and Jon Skeet such that Mysticial can't get more rep than Jon Skeet has.
7
 
9:46 AM
@BartekBanachewicz That is... true.
 
@rightfold john skeet lost over 2 million rep due to repcap IIRC
 
Xeo
@BartekBanachewicz I... don't think so
 
user142019
The DBMS wouldn't be able to handle the amount of increment operations.
 
@Xeo I've lost the link to the query :(
 
thanks for the self restraint there :P
 
9:49 AM
@Xeo 1390528 exactly
Jan 21 at 23:05, by Mysticial
Jon Skeet is by far the biggest loser to the repcap:
 
One lesson I learned: ask questions about bizzare C++ code. Get tons of rep.
 
yea that works ^
 
245.669% lost rep
well.
 
I'll just wait for that new question to cool down and then I'll ask another question with a different trigraph charater.
 
yiz
A lot of the top rep user are C# developers. Which makes sense because C# is the most used tag
 
9:51 AM
@TonyTheLion that's the result of broken "hot" page
 
Damn, it's at 4 close votes right now. :(
 
@Mysticial I liked the photo, if that helps :3
 
@BartekBanachewicz thx :)
 
@Mysticial The question?
 
27
Q: meaning of `???-` in C++ code

taocpI saw the following code from some legacy codes: size_t a = 1 ???- 2 :0; What does the symbol ???- mean in C++? How should I understand it? Thank you!

I'll try to reopen it when it gets closed, but I doubt it'll stay open though.
 
9:53 AM
@Mysticial Why? You've already earned much publicity from the multicollider and you're still advertising it here?!!
 
Xeo
147
Q: What is this smiley-with-beard expression: "<:]{%>"?

XeoI came across the following program, which compiles without errors or even warnings: int main(){ <:]{%>; // smile! } Live example. What does the program do, and what is that smiley-expression?

:P
 
How depressing...
@Xeo I've already seen that...
 
Xeo
@Mysticial The beardy-lambda question was also closed once.
And is open still.
 
yiz
Sometimes Jon Skeet's answer get voted because he is Jon Skeet
 
@Xeo Because it's asked on April Fools?
 
Xeo
9:55 AM
The original intent was a mix of April Fool's and serious question
 
user142019
Man.
 
user142019
Five hours left to finish my homework.
 
Xeo
That's why I opted for a smiley face.
 
@yiz No. Most of the time.
 
user142019
So not going to happen.
 
user142019
9:55 AM
I could finish it in under an hour but yeah /rightfold.
 
@Xeo Mixing syntax as bizarre as that of lamdas with the obscurity of trigraphs... Just like your question.
 
Xeo
I'm still hoping for the question to be reddited, but the chances aren't that high
Although it sometimes does happen months after the question was asked.
 
user142019
@Xeo I can arrange that for you.
 
user142019
lel
 
user142019
Holy shit what's with all the links to that horrible tutorial. reddit.com/r/Cplusplus/new
 
10:04 AM
 
user142019
@thecoshman fucking owned
 
@thecoshman WTF.
@thecoshman When did that happen?
 
Direct all questions to reddit
 
Xeo
Aw, who downvoted the beardy-lambda question
 
This seems to be all too well down here
 
10:11 AM
bing.com/translator Check language list, especially the ones starting with K
 
hahaha
 
@thecoshman No.
 
user142019
@R.MartinhoFernandes lolwot
 
@rightfold It's more precedent for encoding it in Unicode.
 
@LucDanton cock ass bitch whore!
you saw nothing!
 
user142019
10:19 AM
Ok.
 
user142019
Time to really start working on my homework.
 
urgh, I have a bug
 
@Mysticial Sup?
 
@R.MartinhoFernandes hey
I was wondering if there were built-in functions for the following conversions:
 
If it's just paths, you can treat them as binary blobs. That's what the filesystems do anyway (except ZFS with special settings enabled).
 
10:22 AM
- string <-> wstring
- string <-> UTF-16
- wstring <-> UIF-16
 
That's just for Windows, right?
 
@R.MartinhoFernandes It's more than just paths though. Since I'm also serializing other things into the same text file.
@R.MartinhoFernandes Cross-platform.
I've had no problems with wchar_t on Windows.
 
@Mysticial I mean, you only need the conversions for Windows.
 
Time for some w, c, s, to soup.
 
@R.MartinhoFernandes I actually need them for Linux. Their wchar_ts are UTF-32, and I need to serialize to UTF-16.
 
10:24 AM
Oh. Hmm.
 
The program's internal output is ASCII, so that needs to be converted as well, but those are just up-casts.
 
std::default_deleter<T> doesn't provide a pointer typedef...
 
C11 and C++11 have c16rtomb, but not sure if GCC does already.
 
Damn, the trigraph question got closed...
 
What?
Why?
 
10:25 AM
Oh well, all I can do is vote reopen.
@R.MartinhoFernandes I'll take a look at that. Not sure if VS2012 has it yet.
 
That's a false duplicate.
It only deals with ??! and ???
Not with ??-
Vote to reopen.
 
Or rather, I don't have that problem on Windows to begin with.
 
@Mysticial Dunno about VS. I know that GCC 4.7 doesn't. Haven't tested my code that uses it in 4.8 yet, though.
There's always libiconv, I guess.
 
I'm also deliminating different sections of the serialized file with =. And I realize that won't work for multi-byte UTF-16.
 
@Mysticial Why not?
 
10:29 AM
@R.MartinhoFernandes I'm basically scanning it through one character at a time looking for =.
 
= is in the BMP, so that's fine.
 
So if a multi-byte character has = as part of it (not the first character), then it'll be a false positive.
 
no?
 
It never happens.
 
10:30 AM
By design?
 
My system does have <uchar.h>, even if no <cuchar>.
 
@Mysticial Yes.
 
@R.MartinhoFernandes ah...
 
Hqhq, qwertz'd!
 
The set of 16-bit words that can show up in multi-word sequences is disjoint from the set of single-word sequences.
 
10:31 AM
@R.MartinhoFernandes That's a good design.
 
Thanks to self-synchronization aye?
 
@LucDanton I don't think the way I put it is enough to imply self-synchronicity (but it is).
Anyway, @Mysticial I think on Linux iconv is your best bet if c16rtomb is missing.
 
@R.MartinhoFernandes So basically, I'm safe with sticking with wchar_t and wstring for all internal operations. And then using a convertor (if I can find one) for all serialization/desrialization work to UTF-16.
@R.MartinhoFernandes Never heard of that. Thx! I'll take a look at it.
 
> This broke due to some front end changes that disallow forming function types that return abstract types.
That a thing?
 
@LucDanton Dunno if such function types are valid, but I wouldn't be surprised if they are, even if they end up being zero types.
 
10:36 AM
I don't know where to check for that in the Standard, meh.
 
@Mysticial Hmm, yeah, that's the recommended approach: stick to something consistent internally and convert on boundaries.
 
I wonder if I can shamelessly beg for reopen votes on this? :) Since it just got knocked off the multicollider. :(
 
Although the target dupe is somewhat appropriate. So I wouldn't expect it to stay open in the long run.
 
Isn't it an actual dupe?
 
10:39 AM
@R.MartinhoFernandes To some extent. Not a perfect dupe. So I wouldn't expect it either way.
 
@LucDanton Ugh.
 
@LucDanton Which part?
 
The whole of 2017 is std::result_of crumbling down.
I guess that's one more in favour of ResultOf<F, A...> :(
@Xeo ^ come gaze the horror
 
@LucDanton Oh, 2017 is the DR number.
I was wondering WTF did C++17 have to do with this.
 
@R.MartinhoFernandes Same.
 
10:45 AM
no guise i just predicted the end of the world
 
user142019
The end of the world?
 
user142019
Please let it be true.
 
ITT Rightfold is on a death binge
 
user142019
Quite accurate.
 
10:48 AM
Ugh
I can't get std::unique_ptr<byte[]> to play ball.
 
Did you invoke UB again @ThePhD?
 
Compile-time errors, thank you. ._.
 
he ever writes programs that don't invoke a bunch of UB at every possible step?
 
user142019
@ThePhD That is valid UB.
 
=l
 
10:49 AM
that question is kinda like, "Zoidberg, did you fail to finish your project?"
 
@DeadMG lol
 
user142019
@DeadMG lol
 
@DeadMG hahahaha
 
Ell
Why not std::array<byte, N>?
 
So, std::unique_ptr<byte[]> is UB then?
 
10:49 AM
@ThePhD No.
 
@Ell I don't know N, I optionally own the array.
 
@ThePhD Assuming byte invokes UB, yes.
 
user142019
Optionally own the array?
 
@rightfold optional<unique_ptr<T[]>>
 
user142019
boost::optional<std::vector<byte>>
 
10:49 AM
how do you optionally own an array?
 
Puppy fail.
 
Full definition is: std::unique_ptr<byte[], optional_delete<byte[]>> buffer;
 
no I di'nt!
 
user142019
@ThePhD oh lol
 
user142019
10:51 AM
Your code is going to be so unmaintainable.
 
I think we've already hinted at that.
but he fails to listen.
 
user142019
Don't forget that std::shared_ptr also exists.
 
user142019
Maybe it's what you're actually looking for.
 
because he knows better, obviously
 
user142019
inb4 XY
 
10:51 AM
My code will always be unmaintainable to you guys, so I've stopped listening.
I'm not even sure why I said anything.
 
Why then, do you still ask for our advice?
 
@rightfold Actually, I have also found the need for optional ownership.
 
I'll just go dig in on coliru.
 
also, why should we still give you advice?
it seems like a waste of time to me
 
user142019
Man.
 
user142019
10:52 AM
Four hours left to finish my homework.
 
Go! Go! Go!
 
It wouldn't matter if I did everything by the book or not by the book, all of you would have a million things to point out that were wrong with it.
 
ITT Puppy as terrible as ThePhD. No offense intended to ThePhD, only to the puppy.
5
 
TBH, I should probably stop asking for help and just do what works.
 
user142019
I know that in three hours I'll still not start.
 
10:53 AM
I can't fix this bug, I don't know what I'm doing :/
 
user142019
@ThePhD Yes, but that's always the case with C++.
 
user142019
No matter who uses it.
 
@ThePhD That is your misguided conclusion. We're trying to help you, but you keep rejecting advice that may actually get your code working.
 
user142019
@TonyTheLion put it in the bug tracker.
 
meh, I need to fix it
 
user142019
10:54 AM
 
it's already in the bug tracker
 
user142019
Just set its status to fixed.
 
> JavaScript uses ASCII for \d and \w, but Unicode for \s
 
user142019
> JavaScript
 
Impressive.
 
10:54 AM
damn, I need to re-write my lexer.
why don't you just tell me to go use a quantum computer to do it whilst you're at it
 
let me rephrase that
2 messages moved to bin
 
user142019
 
@DeadMG why did you bin that?
 
user142019
You know.
 
10:57 AM
Puppy logic :/
 
user142019
I just discovered that I have to hand in homework on Monday before 23:59.
2
 
user142019
Epic fail.
 
you suck
assuming that was yesterday
 
user142019
It was yesterday yes.
 
hahahaha
 
user142019
10:58 AM
I can see who handed in the homework and I'm not the only one. XD
 
lol
kids
 
user142019
I can even edit other people's uploaded homework lol.
 
How does EBO work with relation to byte scribbling? I.e. is void scribble(foo& f) { /* assert that foo is trivially copyable and its size is 1 */ *static_cast<unsigned char*>(static_cast<void*>(&f)) = 0x42; } always fine to call? Even passing it a struct bar: foo {};?
 

« first day (948 days earlier)      last day (4001 days later) »