« first day (782 days earlier)      last day (4158 days later) » 

8:00 PM
Don't use std::swap for this.
Also that's not GCC
 
user1182183
no but that's ms
 
And doesn't mention const
 
user1182183
Restoring virtual machine state.. because @GamErix doesn't know how to compile .so on windows
 
Member-wise swap should be defaultable
Stupid language
So horrible
 
Didn't we have this conversation before?
 
8:02 PM
@Borgleader Repeatedly, I'm pretty sure.
 
user1182183
ok the linux version compiles with this,
 
user1182183
but what does that warning mean in VS2012
 
It means you're not listening
 
Do you know what we need? A Web service that gives random pictures of cats.
 
user1182183
is there another swap than STD's?
 
@EtiennedeMartel We do it's called reddit!
 
@GamErix Wanna swap STDs?
 
user1182183
so just return *this without swapping?
 
user1182183
@FredOverflow CPP says don't use swap.
 
Have you read the fucking FAQ?
 
8:06 PM
@StackedCrooked box.open()
 
@Borgleader Come to think of it, I could simply query /r/cats.
 
@CatPlusPlus I see.
It works now.
 
And be sure to automatically paste the result on your facebook. I'm sure people will love it ;)
 
I AM BACK.
Good afternoon Longue<C++>
 
Shit cake.
Now that we've established that you're a troll, that mean we can get to the counter trolling.
 
8:11 PM
@EvanCarroll Sorry I have to go to the store, I'm all out of fucks to give.
 
@CatPlusPlus I might need your help on that one if it gets out of hand.
 
@EtiennedeMartel I've never trolled, ever.
 
@CatPlusPlus That @EvanCarroll dude. He's a 10 foot flaming thorn in our side.
 
Ignore him then.
 
8:13 PM
What.
How could I?
 
@CatPlusPlus Oh thats right we can do that
 
I'd gladly ban him, but I can't, because SO is terrible
 
@EtiennedeMartel Click his avatar -> Ignore this user (everywhere)
???
profit
 
I know. That's not the point I'm trying to make.
I always felt like plonking was admitting defeat.
 
user1182183
 
8:14 PM
Eh.
 
@GamErix What is up with this lack of return by reference.
 
Write swap(DPoint&, DPoint&) and then swap(*this, other) will pick it up
 
@EtiennedeMartel Meh... I see it as valuing my right to not give a fuck above all else.
 
user1182183
2
Q: Overloaded assignment operator causes warning about recursion

arjacsohI need to implement the overloaded the assignment operator in a class so the vector.erase function will work properly as proposed in the answers to "vector::erase with pointer member". I have implemented also a copy constructor for the same purpose. By the following implementation of the operator...

 
Fine, don't listen.
I'm just going to go play a game or something.
 
8:16 PM
@GamErix What.
 
user1182183
@EtiennedeMartel got that from there ;F
 
@CatPlusPlus Which one?
 
user1182183
cat you ment this? -> ideone.com/EsSXyT
 
@GamErix swap should be void.
 
user1182183
ye changed that
 
user1182183
8:20 PM
compiler complained
 
Also...
 
@StackedCrooked Maybe EVE
Maybe something else
 
user1182183
@EtiennedeMartel >Also......
 
void swap(DPoint &p1, DPoint &p2)
{
    std::swap(p1.X, p2.X);
    std::swap(p1.Y, p2.Y);
}
That's how you should do it.
 
user1182183
ah right, thanks
 
user1182183
8:21 PM
:D
 
Just delegate the work to someone else.
 
@EtiennedeMartel What is sawp?
 
It's like a swap, but sharper?
 
user1182183
xD
 
@FredOverflow A fucking typo.
(I mean a typo performing sexual intercourse)
 
8:23 PM
And I thought it was a fcuking type.
 
user1182183
0 warnings, now the linux version, God I hate loading that virtual machine just for compiling
 
@EtiennedeMartel Should use ADL
 
@EtiennedeMartel Typos breeding everywhere...
 
Won't matter here, but hey, consistency
 
user1182183
Which compiler do you guys recommend on windows for compiling linux binaries?
 
8:25 PM
@CatPlusPlus Yup -- one of the few good reasons to for a using directive.
 
@CatPlusPlus Yeah, it definitely should.
 
@StackedCrooked Soon, like this: rmartinho.github.com/cxx11/2012/12/02/optimal-tuple-ii.html. Right now the version in the repo uses plain ole insertion sort, which is quadratic.
 
0
Q: TStack not working as template?

Max KiellandI'm trying to declare a stack holding double types with the TStack object (VCL). There is an example in Delphie here but I need help to translate it to C++ builder. I tried the following code: TStack<double> *MyStack; But it complains "E2040 Declaration terminated incorrectly" right afte...

Poor souls using C++Builder.
 
why is C++Builder bad?
 
Oh gawd, Contnrs?
 
8:36 PM
@Griwes What? They ship their own container classes?
 
@Riateche T, T everywhere.
@EtiennedeMartel They ship with their everywhere. It was always like that.
 
@EtiennedeMartel contnr classes, FTFY
 
Welp, I've taken enough of a break.
 
is microsoft c++ compiler the best on windows?
 
Back to trying to hack ogonek to work.
@Riateche It's the one with the biggest tools.
 
8:37 PM
@EtiennedeMartel They always did.
@Riateche No.
 
What a bunch of motherfuckers.
@Riateche Depends on what you define as "best".
 
It's like Qt, really
 
@CatPlusPlus why?
 
You wouldn't use VCL unless you're using their RAD as well
 
maybe I need to stick L in front fo all the Unicode Lierals.
 
8:38 PM
@ThePhD Not going to help.
 
@DeadMG Yeah, I just found that out...
 
wchar_t literals are useless
 
they need to be of type const codepoint[].
 
Robot probably has UDL for that
 
@CatPlusPlus No, I use the standard literals.
 
8:39 PM
@CatPlusPlus He just used regular Unicode literals.
but no support for such on MSVC
 
@CatPlusPlus Well, Qt was rather ground breaking when it came out.
 
can you drop in initializer_list<codepoint> instead of const codepoint*?
 
@EtiennedeMartel e.g. producing faster programs, doing builds faster
 
@R.MartinhoFernandes I could work with that.
 
8:39 PM
then you could do { codepoint, codepoint }.
 
Generated code quality is pretty much the same with every compiler nowadays
 
@Riateche For the former, probably ICC.
 
@Riateche ICC can probably get better executables, on Intels. Still, it's been ages since I looked at benchmarks.
 
MSVC is bad at supporting C++
 
@Griwes What? You mean there are non-Intel processors? Aside from ARM, I mean.
@CatPlusPlus It's also bad at supporting C.
 
8:40 PM
Yes.
 
@EtiennedeMartel MSVC is bad at everything
 
Oh look, more stuff on the THQ bundle.
 
In other words, MSVC is like me. Supports neither C nor C++.
10
 
@EtiennedeMartel It's optimized for Intels; one a bit upvoted post on SO claims its optimizations can perform crappy on AMDs.
 
8:40 PM
Fun Fact: I use MSVC.
 
1 hour ago, by Cat Plus Plus
THQ bundle added Titan Quest and a DLC to RF:A
 
Mysticialsoft Visual C++.
 
@Griwes Not really
 
@R.MartinhoFernandes Can I go ahead and make that chance?
Or are you going to and will update the Ucd Compiler?
 
@CatPlusPlus probably fixed that a bit.
 
8:41 PM
I never thought of using ICC.
 
I haven't created a C# project for compiling the Ucd stuff yet...
 
ICC is not something you use, unless you have too much money
 
@ThePhD Change whatever you think is necessary and make a pull request.
 
ICC still beats out other compilers on AMD in many cases.
 
I will deal with the consequences.
 
8:42 PM
@ThePhD There should be one in the pull, I think
 
I will laugh at the consequences
 
So if ICC is intentionally trying to hurt AMD, it's not doing it that badly.
 
Just don't make the consequences like the other day.
 
oh, it's not free
 
Especially if you make pullreq as bad as puppy's
 
8:42 PM
:(
 
@R.MartinhoFernandes What, you accepted it?
 
@CatPlusPlus No.
 
@CatPlusPlus wasn't there some free version of the compiler itself?
 
Linux version might have been free at some point, I don't know
Just don't think about it, because there is no reason to
You want to use GCC, or Clang if it works on your system
 
How is ICC on the C++xx scale?
 
8:44 PM
@R.MartinhoFernandes Much better than MSVC.
 
@R.MartinhoFernandes What?
 
Which is easy to say, because MSVC isn't much...
 
seriously
I don't get what the problem is
you asked me to see if it was feasible, and I did
 
Yes, but you sent me the worst pull request ever.
Don't even try to defend it. It does not make you look good.
 
which c++ compilers are most used on windows?
 
8:46 PM
right, but I don't care about the pull request
 
didn't even know you wanted one
 
Well, maybe not the worst ever.
 
@Riateche Visual Studio
 
8:46 PM
The worst ever was that one where the guy tried to get an obvious vulnerability pulled.
 
@StackedCrooked nice
 
That wasn't the worst one ever, that was the most hilarious one ever
 
does Visual Studio use MVSC compiler?
 
@CatPlusPlus I thought the most hilarious was the puppy's?
 
all I'm saying is
 
8:47 PM
@Riateche Yes.
 
you could at least wait until I knew that it was the intended result and actually put some effort in before criticizing
 
@David When I try to use the templated version it says that TStack is not a member of Collections, I do include the <Generics.Collections.hpp> If I use the legacy version I can use a TStack MyStack without problems, but a double is larger than a void so I can't do the typecast without complaints. — Max Kielland 1 min ago
 
Why does they all use MSVC?
 
> a double is larger than a void
 
Maybe I'll write some version control tutorials
 
8:48 PM
LOL
 
@Riateche The other compilers have fuck all support for Windows.
 
@Griwes It is, probably
 
@CatPlusPlus mhm
 
@Griwes It's obviously a markdown fail.
 
@CatPlusPlus What's sizeof(void), anyway?
 
8:49 PM
he meant TStack* MyStack without problems, but a double is larger than a void*.
 
It's void*, they're just bad at formatting
double is usually 8
 
@DeadMG pssst, noone would notice :(
 
@R.MartinhoFernandes Really? What kind?
 
long double 12 I think
 
@Griwes Really? Cause both me and cat did.
 
8:50 PM
In IEEE754-compatible implementation, but we don't care about any others
 
@EtiennedeMartel Don't remember. Was on HN.
 
thought we decided that HN was a giant pile of shitfuckballs?
 
@R.MartinhoFernandes The UCD data is generated from a giant XML file. Where is that file?
 
@CatPlusPlus I thought long double was 80bits on GCC and 64 on MSVC. I have no idea what I am saying.
@ThePhD Unicode site. Gimme a sec.
 
Maybe.
Whatever.
 
8:51 PM
I'm experiencing some build troubles with Qt Creator and gcc/mingw compiler under it. When I change class definition in one header, other files that use this class are often not recompiled automatically, and sometimes it causes memory access errors because object size changes. Is this a common behavior?
 
@R.MartinhoFernandes That's correct.
 
it is if your toolchain is a giant pile of shitfuckballs
 
MSVC never supported 80-bit floats.
 
@DeadMG HN is cool, but it's got a rather idiotic community.
 
8:52 PM
Build system, specifically
They all are, so there's that
 
> Does anyone else wind up walking on the balls of their feet sometimes without thinking about it? I’ve been doing this on and off for as long as I can remember, long before I heard about otherkin or therians or the word digitigrade.
 
@DeadMG Doesn't change anything about the content that was linked.
 
@R.MartinhoFernandes One? There's more? Do you have to run multiple through the UCDCompiler?
 
FWIW, I follow the HN bot on Twitter, so I get the links, but not the idiotic comments.
 
@EtiennedeMartel I do this a lot actually.
 
8:53 PM
@ThePhD No, that is just the one.
 
They make fun of me and call me a ballerina. One time my burly older sister almost put me in a Tutu.
 
There is another with the Unihan database but I don't support Unihan yet.
 
@R.MartinhoFernandes Wait, did the puppy rename all your header files?
 
I want to actually know WTF the Unihan database is before I mess with it.
@EtiennedeMartel ...
 
8:55 PM
The ucd2c++ outputs the property types as well? Or just the data itself?
 
@ThePhD Just the data (a bunch of .g.inl files). The rest is already there.
 
Okay.
Lol I was hand-editing all the .g.inl files a moment ago.
I'm so bad at this. :3c
 
you fail
 
They say "generated by a tool" somewhere at the top. I can concede that it isn't very visible with the public domain notice near it.
 
also, I had to modify the ucd2c++ converter to fix one of the inl files (the one I did fix)
so make sure you're checking out the correct version because you're a scrub
 
user1182183
8:58 PM
VS2012 doesn't have an option to start a specific application for debugging?
 
Yes, it has.
 
user1182183
I can't debug a DLL if the application which loads it doesn't run..
 
user1182183
@R.MartinhoFernandes I don't see it in the debug menu?
 
I use that all the time to launch InDesign, except it fails to launch InDesign for some reason, so I just launch manually and attach.
 
user1182183
@R.MartinhoFernandes maybe it's not setting the correct working directory
 
8:59 PM
Exactly what happens when you attach a debugger to a process that is running?
 
@GamErix I think it's in the project property pages or something.
 
Why are you debugging InDesign you evil cracker
 
@CatPlusPlus I am writing a plugin for it. At work.
 
@Mysticial It's suspended and debugger gains control over it
 

« first day (782 days earlier)      last day (4158 days later) »