« first day (1677 days earlier)      last day (3262 days later) » 

10:00 PM
@Ell i like some of their songs
 
Ell
I just heard an advert on spotify
 
SCHUUUULERRRR!!!!
used to listen to rammstein a little back in the days
 
@JohanLarsson who wastes their time making PRs like that
 
@rightfold typedef
 
so immature
 
10:03 PM
dunno
 
@JohanLarsson what exactly would 'wtf' stand for in this case?
 
i don't really understand either
 
@Rapptz I have not investigated it much, for all I know it is just someone wasting time on a lame joke.
 
it's not even funny
 
somewhat but I'm a sucker for lame stuff :)
 
10:11 PM
@Puppy But you cannot typedef functions?
 
Ell
yeah why can't you alias functions?
 
@BaummitAugen using
 
Ell
can you do using on functions? o.O
 
user1804599
You cannot use using to rename functions.
 
you guys mean different things
 
10:12 PM
@Puppy How?
 
Ell
oh yeah that's simple
 
nice but a) it's a mutable shitty function pointer and b) it's a shitty mutable function pointer.
 
inb4 not the same thing, inlining, etc.
 
@AndyProwl Well. Neat. :)
 
10:13 PM
it's a global function pointer
don't use that
 
I wasn't fast enough at inb4
 
#define :P
 
even worse
-2
 
Ell
what is the solution?
 
jeez can't jokez in the lounges
 
10:14 PM
@Brian Have to deal with this at work.
 
@Ell overloading
perfect forwarding makes this easy
@AndyProwl no fun allowed
 
Ell
how do you alias a function with overloading? o.O
or do you mean just writing a forwarder function
 
yes
 
yes
 
yes <-fail
 
10:16 PM
but don't have fun while doing that
 
you can be all cool and make it a lambda
auto fun = [](auto&&... args) { return foo(std::forward<decltype(args)>(args)...); };
 
Do the Niebler.
using foo = not_a_fun;
 
lol
0
Q: Practical use of Expression SFINAE

Mr.C64Are there any practical uses of expression SFINAE? Are they useful just for e.g. an STL implementer, or are there any practical applications that can be used by ordinary C++ programmers in their "everyday" code?

 
Oh my bad it’s auto& foo = not_a_type_either;.
 
cv please
 
10:17 PM
@Rapptz Here, have a volatile.
 
@Rapptz const for you
 
close as too broad please :v
should I play video games
 
way ahead of you
 
Wait, seriously: How would I "rename" a function pre-C++11?
 
you overload it
 
10:20 PM
it's not an overload though is it
 
it isn't
 
Ell
#define alias_f(func, newname) template<class... ArgTs> \
auto newname(ArgTs&&... args) { \
    return func(std::forward<ArgTs>(args)...); \
}\
 
if it has a different name...
 
Ell
^hows that? :P
 
maybe decltype(auto)?
 
10:20 PM
needs decltype(auto) or -> decltype(...)
 
@Ell "pre-C++11"!
 
Ell
@BaummitAugen I wasn't trying to answer your question :)
 
I work on Ubuntu 12.04 :(
Oh.
sry
 
Ell
@BaummitAugen so? o.O
 
Ubuntu 12.04 does not have any C++11 compiler?
 
Ell
10:21 PM
you can still get a newer compiler
 
it does
you can get 4.9 on 12.04
 
Ell
@AndyProwl wait why do I need the decltype?
 
@AndyProwl And my boss wants C++03
 
user3790646
oh yeah I'm coding a simple framework wrapping the win32 API for my own use, and subclassing the WndProc worked :D
 
user3790646
 
10:22 PM
It's not like that is my decision.
 
@Ell so you don't strip references
 
Ell
Well I had no idea about that
 
@Ell to perfect-forward the return value too, auto does not deduce & per se
 
Ell
Oh yeah of course
 
int& f() { static int x = 10; return x; } auto g() { return f(); } // returns int not int&
 
Ell
10:22 PM
decltype(auto) does look very odd
right
 
I would have preferred auto(decltype)
 
Ell
for some reason I figured it'd deduce a reference for return type because a lambda would
 
a lambda?
 
lambda is decltype(auto) by default
 
oh
didn't know that
since C++14?
 
10:24 PM
yea
 
nice
 
We shall bet on how much time will it take for LRiO to come back.
$10 on "< 1 week"
 
wait are you sure?
 
@Jefffrey what happened?
 
@Jefffrey $0.50 says she comes back today or tomorrow.
 
10:28 PM
yesterday, by Lightness Races in Orbit
This is so pathetic.
Work from there up.
 
user3790646
Oh my...
 
user3790646
:/
 
user3790646
is it my fault?
 
yes
 
10:29 PM
@AndreyErick You were the flagger?
 
user3790646
:/
 
user3790646
flagger?
 
user3790646
I didn't see Lightness the entire day
 
The person who flagged her posts.
 
user3790646
I didn`t
 
10:30 PM
Oh, well then it's not your fault.
 
user3790646
Oh . My psychologist says I shouldn't see everything as my fault, I think she's right...
 
@AndyProwl Return type deduction is by-value in C++11. I find it hard to believe this behavior would change in C++14.
 
@StackedCrooked Yeah I suspect the same
 
@AndreyErick Is she hot?
 
user3790646
@Jefffrey she's married...
 
10:32 PM
That's irrelevant.
 
> The lambda return type is auto, which is replaced by the trailing-return-type if provided and/or deduced from return statements as described in 7.1.6.4
 
@AndyProwl I remember wrong.
 
@StackedCrooked Yeah but I think that return x; and return (x); can be different things.
 
> The lambda return type is auto, which is replaced by the trailing-return-type if provided and/or deduced from
return statements as described in 7.1.6.4.
 
user3790646
but there was a girl on the hospital(I had to stay there 3 months) that was very hot
 
10:33 PM
@Puppy Only with decltype(auto)
 
@AndreyErick s/were/was/
 
true
 
user3790646
was*
 
user3790646
sorry
 
user3010322
Introduction to Statistics is next exam in 2 days. \o/
 
10:34 PM
@AndreyErick You can edit your messages
 
@Puppy I vaguely remember from a STL talk that return (x) disables move elision. (I'm probably wrong on this though.)
 
I thought (x) forces lvalue
 
@StackedCrooked return move(x) does
not sure about return (x)
 
As opposed to by return by copy for example
 
user3790646
how to whisper/private message someone?
 
10:34 PM
oh yeah
@Stacked's right
 
user3010322
@JerryCoffin I changed it so that I was using typedef struct { FILE* output; int current_line } print_pack; And then passed that through the callbacks void*, so in the end I got rid of the code smell.
 
but wait, I remember things changing it in the last standard
 
6
A: Are parentheses around the result significant in a return statement?

Michael PetchC++14 adds a fringe case where parentheses around a return value may alter the semantics. This code snippet shows two functions being declared. The only difference is parentheses around the return value. int var1 = 42; decltype(auto) func1() { return var1; } // return type is int, same as declty...

This is really obscure stuff.
 
evening
 
user3010322
@StackedCrooked It's "Expression" versus "Variable"
 
10:37 PM
I don't think it matters for elision after all
 
Yay, I remember right.
 
@ThePhD you make sense :)
 
user3010322
Which makes sense when you think about it, but backhands you in a generic context.
 
evening tony
 
more precisely "unparenthesized id-expression"
 
10:37 PM
you're making a number of appearances recently
 
ah, no shit it does matter
 
there's literally jobs everywhere (for programmers)
 
user3010322
Tony! \o/
 
(changed my mind twice in two minutes, solid knowledge of C++, well done Andy)
 
@Puppy yea, sadly I still feel the desire to appear here. :P
 
10:38 PM
the returned expression has to be a name
 
user3010322
Nobody can escape the lounge.
 
@TonyTheLion sadly your mum in bed
 
@ThePhD We'll see with LRiO
 
@ThePhD Its deceptively hard
 
12.8/(31.1) and 12.8/32
 
10:38 PM
I could just make endless "your mum in bed" jokes and then you won't feel the desire to appear here
 
user3010322
In fact, leaving the lounge is probably N.P. Hard.
 
@AndyProwl Remember to play agar.io
 
user3010322
The only way to leave is to be Pawnguy7.
 
@Puppy I'm so over "your mum" jokes, you haven't any idea
 
@Jefffrey Fuck off. NOW!
 
10:39 PM
much like I'm over your mum in bed
 
@ThePhD RIP Pawnguy
@Puppy lol
 
user3790646
 
@ThePhD Not even a jam dedicated to him was enough to summon him
 
user3010322
I'm too bothered by this code to let it be.
 
user3010322
I need to fix it.
 
10:40 PM
The problem is simply that there's a lot of people in here that I like chatting with
 
^ More mum in bed needed, @Puppy
@Jeff let's play agar
 
@AndreyErick pawnguy never came back
 
user3790646
Oh :[ why?
 
I don't know we know why he never came back
probably Comic Sans got to him
 
user3790646
I've not been here for too long but I like the Lounge
 
10:42 PM
I came really close to never coming back
 
@ThePhD Good call.
 
user3790646
@TonyTheLion what's happened?
 
@AndreyErick Its a likeable place, most of the time
@AndreyErick certain individuals that will remain unnamed really got on my tits
 
user3010322
I wonder how to sort on multiple attributes...
 
user3010322
I also need to write a mergesort.
 
user3790646
10:44 PM
@TonyTheLion I see :/
 
@TonyTheLion woof woof bitch
 
@Puppy meow
 
user3790646
wait, a dog!!??
 
@TonyTheLion I was not aware that you possessed tits.
 
user3790646
@Puppy Come here - I love doggies
 
10:45 PM
@Puppy nipples mostly, but for the sake of expression, I thought tits might be a better word
 
@ThePhD std::tie?
 
@AndreyErick carefull, Puppy bites
 
user3010322
@StackedCrooked In C.
 
user3010322
I was thinking of generalizing the sort to take a callback.
 
Good luck.
 
user3010322
10:45 PM
Much like qsort does.
 
@ThePhD ewwww
 
user3010322
But I don't know where the callback'd go.
 
@TonyTheLion While you were gone, I was the king of the jungle.
 
@Nooble I'm glad someone took responsibility for my kingdom while I was gone
 
user3010322
@TonyTheLion The good news is: it's the last C program I'll ever have to write, barring me fucking up and inserting myself into the Industry.
 
10:46 PM
put the values in contiguous storage and use memcmp?
 
do koalas live in jungles?
 
@ThePhD I have found C hard to avoid if you're going to write C++ for a living
 
@TonyTheLion :)
 
I write C++ for a living and have managed to avoid C
 
@nick Not really.
 
10:47 PM
I have to figure out a new job, I don't know what I want to do
 
user3010322
You know.
 
user3010322
You could probably emulate std::vector on a regular thing
 
user3010322
by just having a bunch of function pointers
 
join loungey.io we're hiring with competitive pay
 
user3010322
In C.
 
10:48 PM
@ThePhD How did you end up writing a C program?
 
user3790646
@TonyTheLion Let's write a business system :D
 
too many choices
 
@AndreyErick ewwww
 
@TonyTheLion I want to test sun-tan lotions. Wait, I've got it: I'll become a comdom tester.
 
user3790646
10:48 PM
O bruxeiro 3 ?
 
You could write the program in C++ and try decompiling it to C :D
 
@JerryCoffin lol :)
 
user3010322
@StackedCrooked For school.
 
user3010322
@StackedCrooked There's not many to-C compilers.
 
10:50 PM
@TonyTheLion A new programming job or just in general?
 
@AndyProwl Let's do it
I'm in europe
 
I already did
 
@TonyTheLion 'course, I was once told to dress for the job I wanted instead of the job I had. I tried to do that, but they didn't seem very impressed. That suit didn't fit in very well at the office (and even I have to admit, the surf-board took up too much room in my cubicle).
 
I was killed by Feminism
 
@Puppy Since I'm only good at programming and not much else, I doubt I could get anything else than a programming job. Its more really what industry do I want to code for.
 
user3010322
10:51 PM
At least, not for the big ones like vc++ or g++ or clang++.
 
user3010322
clang++ used to have a llvm-to-C, then it was deprecated, and then someone outside the llvm org revived it.
 
it was killed for good reason
 
@AndyProwl I'm sorry
 
@TonyTheLion Speaking of jobs, I need to flee with ninja speed, since I am supposed to be attending my job tomorrow.
 
yeah me too :(
 
10:52 PM
catch you later
 
@AndyProwl You're a very chatty cadaver.
 
@ThePhD EDG has (or at least used to have, and I think probably still does) a code generator that produces C as its output (but the C it produces isn't intended to be even close to readable).
 
@Puppy That's accurate
I should be sleeping already
 
user3010322
@JerryCoffin Well, if the C is being treated like a machine language (which in every case I want to use it, that's what it is), it's not too bad! It just means an extra build step though.
 
10:56 PM
All right, night guys
 
@ThePhD As it was sold commercially (e.g., Comeau C++) there wasn't even a (visible) extra build step. Its compiler driver invoked their preprocessor, their front-end, the configured back-end (VC++ or g++ or whatever), all automatically. The only visible effect was that compilation could be on the slowish side.
@AndyProwl G'night.
 
Compiling C can be really fast though
 
user3010322
@JerryCoffin Tools that actually do what you want? Blasphemy!
 
Ell
@AndyProwl night bud
 
@Brian It can--all I can guess is that some template-heavy code probably produced quite large amounts of C in the intermediate representation.
 
11:00 PM
@AndyProwl Night
 
@TechnikEmpire you may need to addref for any thread on which the dll is loaded msdn.microsoft.com/en-us/library/windows/desktop/… (I think you knew already)
 
@AndyProwl Good night.
 
@StackedCrooked Cheers. (Does this mean than 4.9 is no longer working ? o.O)
 
user3010322
I wonder...
 
11:07 PM
i love that feeling when a bug is fixed
fuck yeah
 
user3010322
Should I lex preprocessor input into tokens and then process that?
 
is designing an API where you have a function that takes std::functions as an argument a bad idea
it feels like "here you go user! do whatever the hell you want! lalalala"
 
user3010322
Context. Is important.
 
@Prismatic not with a purpose.
2 mins ago, by ThePhD
Context. Is important.
 
11:18 PM
 
Wow, you werent kidding about your hips
 
user562566
@sehe no I didn't already know cuz I'm shit
 
what about my long neck?
 
Oh. Well. Then it's good I rambled a bit
 
user562566
lol
 
user562566
11:20 PM
nah I think it's something else. I did consider that, I think it's just per-process not per thread
 
user562566
something's really broken because I can flat out call WSAStartup, confirm it succeeded, then the very next line run a boost::asio socket opt, program crashes and burns saying there's been an equal number of WSAStartup/WSACleanup calls so winsock was not initialized during the call
 
user562566
makes 0 sense to me. so I did the only thing I can do, go pout and chain smoke
 
It's great for long things
 
FAILED:
  REQUIRE( a[0] == 0.6028330892 )
with expansion:
  0.6028330892 == 0.6028330892
lol
 
Congratz for doing asserts on equal floating point values, lol.
 
11:25 PM
When blaming the compiler just isn't quite good enough, blame the language itself!
-1
Q: Anyones know why this c++ bug? ( Yes, c++ bug )

ShopeteI declare the variable 'texture' in class 'entity' which inherited many classes. That variable 'texture' is never used, or initialized, even no other mention of her in all the code. If I declare in a certain line, there are bugs in the program, if I declare four lines above everything works righ...

 
@Griwes What about it?
 
@Jefffrey rtfm
 
@Jefffrey Comparing floats for equality is quite often wrong.
 
> Software Engineering Student - C/C++ Java C#
 
@Griwes Not in this case, AFAIK.
 
user562566
11:26 PM
@sehe oh you mean manually incrementing the ref count in the asio winsock_init<> class?
 
@Jefffrey Looks like one of those cases. vOv
 
I know that you should normally use a small epsilon and compare with operator<
 
@Jefffrey the full precision isn't being shown here
 
Code that didnt work "rigth" (whatever that means): provides 20 function decls
Gaddunit mike
 
user3010322
@Jefffrey The bits are different. == performs hard bit-by-bit comparison in most cases (/cc @Mysticial for fact check).
 
user3010322
11:29 PM
Conversion to Base10 is lossy.
 
@ThePhD Fat chuck?
Fact hunt?
 
@Rapptz Thanks
 
@ThePhD Yes (for cases that don't involve any of the oddities like NaN's or infinities).
@MartinJames Are you saying Helen Hunt has gotten fat? Really?
 
@JerryCoffin lol
 
so many fat thoughts floating on this chat ...
we should all start posting more vegetables & fruits
 
11:34 PM
@chmod711telkitty My thoughts are all big, fat, and juicy!
 
@TechnikEmpire through the interface that is documented, yes
 
@JerryCoffin over the muffin top thoughts?
 
@TechnikEmpire that always helps (?)
 
Lol
 
user562566
@sehe Yeah that's why I called it a hack, because once you use manual_init within this type of context, it permanently bumps the static ref count to never-less-than 1. So basically the entire object becomes useless, and you might as well have a define that entirely omits it. That's what someone pointed out on the bug thread, but it was ignored and we got this crazy shit instead
 
11:36 PM
@JerryCoffin Just had sausages, bacon and toms with four slices of bread/butter. 'big, fat, and juicy' all confirmed. Shame about R. in his soggy tent:(
 
@MartinJames Mmmm...sausage. I'm ready to leave work early so I can go have supper right now (and it's all your fault too...)
 
Ell
@DonLarynx wtf is with your avatar? :P
 
@JerryCoffin I'm just fighting back against all those food pics when I was hungry:)
 
@Ell precious little sehflek
 
@AlexM. Lol
@Ell whats wrong with it?
 
Ell
11:43 PM
It's like sehes with a weird face
 
user562566
It's awesome
 
presius litel snoflek is cicada and don larynx bears similarities to it
I can only deduce that don larynx is lori
the plot thickens
 
@Ell I thought sehe was a snowflake gorilla. I found out yesterday hes just a facepalming polar bear. So I fixed it.
 
user562566
@DonLarynx For the longest time when I saw it, I immediately thought gorilla too.
 
@TechnikEmpire Great minds think alike.
 
11:54 PM
@DonLarynx So do third-rate minds!
 
lazy mind creates genius ... the elite lazy mind that is
 
@AlexM. except don larynx never show any similarities at all
 
Tonight I'm channeling my inner Tomalak: I'm ordering food.
 
Right. I think Tomalak usually cooks at this hour :)
 
@chmod711telkitty So Larry Wall says ("Laziness, Impatience and Hubris are the three qualities of a great programmer.")
 
11:58 PM
@EtiennedeMartel you're channeling your inner Alex if you do that
 
@AlexM. I'm not ordering pizza.
@sehe It's almost 20h00 here.
 
I order pizza much less than I order other foods
 
But you only tell us when you order pizza.
 
my favorite order food aside from pizza is sour chicken soup and QF tagliatele
 
Hi @sehe
 

« first day (1677 days earlier)      last day (3262 days later) »