« first day (846 days earlier)      last day (4109 days later) » 

5:00 PM
Zoidrone
 
Xeo
Weeeekend time~
 
Consumer whore.
 
@ThePhD zoidlambda. [](zoid const &annoyance) { return advertisement; } :-)
5
 
@Xeo Not you too?
 
Xeo
Wut?
 
5:00 PM
We already had one tilde happy guy, I'm not sure I can handle a second one.
 
@Xeo You're not coming to Berlin to meet up with Tony?
:P
 
Xeo
lol, I'm using tilde all the time.
@R.MartinhoFernandes Sadly, no.
 
@JerryCoffin You know, I never knew you could place const where you did.
 
@R.MartinhoFernandes Which reminds me I should really get up and get that fucking passport.
 
Xeo
I might not even go to our D&D session tomorrow, I caught an irritating cough.
 
5:01 PM
lol, passport
 
@Xeo i'm an interoobang fan, myself‽
 
I always thought const zoid&, not zoid& const.
 
@EtiennedeMartel better "tilde happy" than ~happy.
 
*interrobang
 
user142019
@ThePhD references cannot be const.
 
5:02 PM
@Xeo Weakling. You wouldn't survive 15 seconds in the Canadian winter.
 
This might explain why this pointers with templated typename functions never work out right.
 
@EtiennedeMartel His PC would.
 
@JerryCoffin I was trying real hard not to write that damn squiggly character.
 
user142019
You can have a reference to const type.
 
@ThePhD cant be X &const, but can be X const &.
 
user142019
5:02 PM
And postfix const > prefix const.
 
Xeo
@EtiennedeMartel I'm normally fine with cold temperatures, but the coughing hurts right now.
 
Canadian winter? They're talking Berlin, AKA 'outer Siberia'
 
Quick questoin, then...
 
@Xeo Don't you have cough medicine up there?
 
@EtiennedeMartel I was punning (as in "not happy").
 
Xeo
5:03 PM
Alright, see ya on monday.
 
@JerryCoffin I know.
 
@Xeo Really? You're coming to Colorado next week?
 
@MartinJames "Average low: -2 C". You call that "cold"?
 
template <typename T> void DoShit (T const& arf) <---- If I use this with a this pointer, what will T be?
 
@MartinJames He's not in Berlin. He sucks.
 
5:04 PM
"Average snow: -2 metres".
 
@ThePhD A reference to a const pointer to a const T.
 
i'm in new england getting hammered by snow right now
 
@EtiennedeMartel As the lady bug might say, you guys only survive because of the caribou skin.
 
... Oh. That makes more sense I guess...
 
I'm in old England and the snow is coming Sun/Mon.
 
user142019
5:06 PM
@JerryCoffin So T const* const&?
 
@R.MartinhoFernandes A friend of mine once said "Y'a juste les caves qui ont frette."
 
OOOH
That gives me an idea!
Damnit, tilde.
 
Anyone see anything wrong here?
int main() {
	FILE *text;
	if((text=fopen("C:\\Test\\test.txt", "r"))==NULL) {
		return FILE_NOT_FOUND;
	}
	return 0;
}
 
@MartinJames seeing snow in england is funny. people seem to freak out over an inch or two
 
@Crowz Aside from you?
 
5:07 PM
@Zoidberg Sounds about right (but you can't trust me -- my C++ is pretty poor).
 
;-;
 
user142019
@JerryCoffin s/my//
 
@Crowz You could just run it.
And see if your computer explodes or not.
 
@ThePhD It keeps giving me errors and I don't quite see why
 
Is that a real file?
 
5:08 PM
@Crowz What error where?
 
user142019
@Crowz not enough RAII.
 
user142019
@Crowz not enough raw string literals.
 
user142019
@Crowz not enough nullptr.
 
@Zoidberg It's C. I think.
 
user142019
5:09 PM
@Crowz initialize text immediately rather than in the if condition.
 
user142019
@Crowz call to fclose is missing.
 
@JerryCoffin I think it's something about it being visual studio
 
@Crowz ALlright, he's a protip: when you ask for help, give as much information as possible in one shot. Don't say "I have errors", tell us what errors you're getting.
 
@Zoidberg Bad idea. More important to weld the opening and testing for success together.
 
user142019
Basically, everything that can be wrong with that code is wrong.
 
5:09 PM
@Crowz You're not helping. At all.
 
error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead.
 
@EindacorDS Sadly, most drivers in UK cannot deal with anything other than clean tarmac. Most of the remainder cannot even deal with that.
 
user142019
@Crowz not enough Haskell. :D
 
@Crowz CRT warnings. You should listen to them, or if you don't care,
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
 
@Crowz That's a warning, not an error. Just MS advising that you make your code non-portable.
 
5:10 PM
@MartinJames i lived in new jersey for 4 years, same deal there. quite amusing
 
@ThePhD I don't even know what a ** is because I'm bad... so... fopen_s doesn't seem quite viable
 
@EindacorDS Seems to happen almost everywhere.
 
user142019
a** is a pointer to a pointer to an a.
 
A Pointificated Pointer?
 
5:12 PM
a** is the devil.
 
user142019
Pointifex
 
T** is my friend <3
Or rather, T*& .
 
user142019
@ThePhD IORef (Ptr a) FTW
 
@Crowz It's just stupidity, to be honest. They changed the interface so it's not portable, but gained exactly nothing in the way of safety from doing so.
 
My nemesis, the nested loop, we meet again :(
 
5:14 PM
I really dislike visual studio... gcc and vim is so much better
 
@Crowz So use gcc and vim.
 
Then I'd need to install linux again
 
user142019
Use Linux.
 
user142019
It's superior.
 
5:16 PM
AHMIGAWD
 
Also, return errno.
 
I use GCC and vim on Windows. <Preemptive "don't ask me for help" disclaimer here>
 
THERE'S NO MORE ERRORS
OH MY GOD IT MIGHT WORK
Ohmigawdohmygodomyhgodohmygoddddd
 
user142019
I use GHC and Vim on Arch Linux.
 
user142019
:3
 
5:17 PM
@R.MartinhoFernandes So how do I use GCC and vim on Windows?
 
But I like to play games on my computer and Windows is far superior in that respect
 
I preferred vin, a very dry Chardonnay, given a choice.
 
I usually download linux on my laptop, but that was stolen
 
I thought you were gonna flame me. :(
 
5:18 PM
@Mysticial You can also use rubenvb's distro, because nuwen's didn't work for me too well. =[
 
user142019
@Crowz dualboot or VM.
 
rubenvb's also got shiny x64 compilers and stuff.
Vertex, Geometry, Hull, Domain, Pixel,
with Compute being in a separate category entirely.
;~;
I wish I could std::vector<std::unique_ptr<T>>
 
user142019
uh
 
user142019
@ThePhD You can.
 
5:22 PM
@Zoidberg But DLL Export is a mean, nasty jerkfacemcdumbybob
 
user142019
T_T
 
user142019
Wat.
 
GCC works fine in VM, on virtualized Linux or Windows. Don't know about vim - I don't use scouring powders.
 
I have to export a whole class in order to use it in my DLL.
If I export the whole template for std::vector, that includes copy-based methods and not mov-only ones.
 
user142019
Export a C API.
 
user142019
5:24 PM
For C there's de facto standard ABIs.
 
... So. Write a bunch of move_list functions that operate on a std::vector of std::unique_ptr's ... ?
You've lost me.
 
Wait, isn't there a std::erase algorithm?
 
C++ API is fine if your DLL is only intended for C++ consumption
 
Oh, it's remove, nevermind.
 
5:28 PM
It's vendor-locked, but that's C++ for you
Fammit, pending updates
 
Hmm, I need to get a vector<T>::iterator from a T*. I guess v.begin() + std::distance(&v[0], ptr) is the simplest way, right?
 
std::find maybe
 
@R.MartinhoFernandes std::next?
 
@CatPlusPlus That searches for a value. The pointer may not be dereferenceable, i.e, one-past-the-end.
 
@Zoidberg Not "de facto". The C ABI is part of the standard.
 
5:36 PM
Why do you need to get iterator from a pointer
Woo, new Java, and I have to install 64-bit one manually
 
@CatPlusPlus Because I need begin() to return an iterator to either a std::array or std::vector, so I picked pointers.
 
variant<array::iterator, vector::iterator>?
 
And one operation needs to revert that if I want to reuse existing vector code.
@CatPlusPlus That's not an iterator.
Yes, I could make it one, but gosh, that's a lot of work.
 
I'm just throwing ideas vOv
Also I just realised that Java update check is fucking useless, because it only runs on system startup
 
@StackedCrooked no, you actually turned out to be this guy I knew in college IRL.
 
5:40 PM
lol
 
@EtiennedeMartel What C ABI is part of what standard?
 
The standard C ABI, duh. ;)
0
Q: what does the wiggle sign mean in c/c++?

user961936if (~mask == 0){...} I have encountered this thing in one of the .cpp files, and I wonder what is does ~ mean in c/c++?

 
"wiggle"
 
Oh look we were talking about the wiggle sign recently.
 
5:42 PM
ooo cpp has advanced for loops?
 
@StackedCrooked Unrestricted templated op<< in the global namespace? Need I say more?
 
I'm not familiar with that problem.
 
The deduced argument should be std::vector<int> and the deduced element type should be int. Where goes it wrong?
 
@StackedCrooked Erm, there are always two candidates for int: yours in the global namespace, and the "real" one.
 
5:44 PM
@StackedCrooked When you try to insert the element from the vector, it doesn't know whether to use your template or the existing overload.
 
jesus christ
I've never gained upvotes so fast
this is probably the most basic answer I've ever written
fucking fuckwits
 
sbi
Hey, guys, did you know that Fox news claimed...
 
:stackoverflow:
 
sbi
Ok, Ok, I hear you!
 
why would 5 people upvote an answer to an easy horribly duplicated question?
 
5:45 PM
Because the button is there
 
@doug65536 Because it's one of the few simple enough for them to understand?
 
Also someone cared enough to answer
 
@JerryCoffin yeah, makes sense
 
You know what must die?
Focus stealing
 
@R.MartinhoFernandes Shouldn't this clear the 'int ambiguity'? (I'm probably misunderstanding again.)
 
5:46 PM
@CatPlusPlus Definitely.
 
@CatPlusPlus I really didn't
@CatPlusPlus I wanted the rep
 
@StackedCrooked That changes nothing! Your template can still be instantiated for int.
 
@LightnessRacesinOrbit But you did
 
Your template can be instantiated for everything. That is the problem.
Either you restrict it to vector, or you SFINAE it for ranges.
 
@R.MartinhoFernandes Ah! So the os << i matches the very same function.
 
5:47 PM
Yes.
 
sbi
Uh, this room is dull. I guess I will have to leave early then. See you, robot!
 
@sbi Cause you aren't around enough to keep us entertained. :P
 
@sbi I'm two stations from the meeting point, so I won't leave yet.
 
Or maybe it's just a timezone issue...
 
sbi
5:48 PM
@R.MartinhoFernandes Yep.
 
It's because people are talking about C++
 
@sbi Are you trying to get the poor robot drunk again?
 
sbi
@Mysticial I never meant to entertain you silly bunch! I meant to be entertained here.
 
@sbi It goes both ways. You entertain us. And we entertain you with our lame reactions.
 
sbi
@JerryCoffin What do you mean, "trying"? I have the lion with me, so there's no chance he'd come unscathed out of this!
 
5:49 PM
:(
 
sbi
@Mysticial Yawn.
 
@CatPlusPlus Well I'm glad you know better than I do what I care about.
 
@StackedCrooked Actually, this might be a nice example to use to explain why tag dispatching is not a replacement for SFINAE, this rumour some people seem to like spreading.
 
Santimonious git
 
15W-40. 10 litres should do it.
 
sbi
5:50 PM
Anyway, I'm outta here.
 
@LightnessRacesinOrbit <3
 
cya
 
Speaking of git, does this piece of crap even have a bug tracker
 
@CatPlusPlus </3 ICE CREAM CONE
 
@LightnessRacesinOrbit Double-scoop?
 
5:50 PM
@sbi A cowardly lion, a tin man and a flying ape. Something about this sounds familiar...
 
sbi
@ScottW Someone pin that, please.
 
@MooingDuck dammit not you too
oh, bronze, ok :D
 
sbi
@JerryCoffin I don't fly.
 
Because colours don't work
 
@R.MartinhoFernandes What's tag dispatching again?
 
5:51 PM
@sbi Colloquially, "fly" means "leave" or "go"...
 
@JerryCoffin There is no Dorothy :(
 
I've installed VS2012 and it appears to have hijacked the file associations
 
@StackedCrooked std::forward_iterator_tag() as a parameter so it knows what kind of iterators it's got.
 
6
A: Why to avoid std::enable_if in function signatures

rhalbersmastd::enable_if relies on the "Substition Failure Is Not An Error" (aka SFINAE) principle during template argument deduction. This is a very fragile language feature and you need to be very careful to get it right. if your condition inside the enable_if contains a nested template or type defini...

I still haven't finished that post.
 
I guess it has pretty icons and probably equally broken editor
So how do I make VS2012 less white
Oh there it is
 
5:56 PM
Why are you even installing that?
 
Because I can
It's free so why not
 
Still no line ending setting ahahahaha how many years will they need to create a text editor that's not horribly broken
I have 2008, 2010 and 2012 now :v
 
@R.MartinhoFernandes he looks kinda scary
 
2008 mostly because Python needs it
 
5:58 PM
Hi Mooing (without the @)! :)
 

« first day (846 days earlier)      last day (4109 days later) »