« first day (842 days earlier)      last day (4099 days later) » 

7:01 PM
if something that is const contains a non-const reference to something else, I can't access the something else through the const thing right?
Qt Creator has awesome vcs integration
 
@Zoidberg I can't agree. Even with infinite resources, XCode would still suck.
 
user142019
That’s a side-effect of Objective-C sucking.
 
and it looks fancy
 
Also, fuck. General initializer lists : Partial
 
7:05 PM
@Zoidberg Partly, but not entirely. The biggest problem (to me) is that it seems to have been done as an exercise in UI/UX design, while carefully ignoring/excluding any input from anybody who'd ever actually use the thing.
 
user142019
@FredOverflow I knew the Cat was a dick!
6
 
@BartekBanachewicz dump MSVS
 
@FredOverflow Why is it always penises in this room?
 
Get MinGW-w64, made available and built by
 
@rubenvb it's ICC not MSVCC. Which is fairly superior to GCC, but lacks some of the features yet, as it seems
 
7:06 PM
We are secretly Lounge<Penis>
 
@AndreiTita What else would you prefer?
 
C++ is just a disguise
Lounge<pussy>??
 
Launch<Penis>
 
@BartekBanachewicz ICC handles initializer_list just fine, its the MSVS C++ library that doesn't, hence "partial".
 
@rubenvb i should get better standard library then
 
user142019
7:08 PM
 
user142019
Imagine this were the glans/shaft-ratio.
 
user142019
As in dimensions.
 
I googled "glans/shaft ratio". Please hand me brain bleach :(
2
 
user142019
lol
 
@BartekBanachewicz port libc++ to Windows. Or learn to live with libstdc++'s strange shortcomings on Windows (which arguably aren't many)
 
7:11 PM
@rubenvb both lame.
there's a better std out there
i just forgot the name
 
@BartekBanachewicz The only other ones I know are Apache STDCXX thing and Dinkumware, but MSVS licenses Dinkumware, then removes all the features its crap compiler doesn't implement.
There's also an independent C++ lib for Windows kernel development, but I guess it's just as usable for userland apps.
 
@Zoidberg Why are we talking about shafts?
 
user142019
 
user142019
^ shaft.
 
What's that one for?
 
7:15 PM
 
user142019
@FredOverflow ventilation.
 
Also, news from Montreal:
Montreal's police service makes some weird PR stuff sometimes.
 
You mean that's not a movie poster?
 
It's real.
 
7:25 PM
@EtiennedeMartel Cest pas un poster de 19-2 ca ?
 
@Borgleader Non.
 
@Borgleader Ceci n'est pas une affiche.
 
@FredOverflow that's affiche or poster.
Sheesh.
 
user142019
The comma operator is underrated.
 
a = b,c;
Does a get the value of b or c? ;)
 
Ell
7:32 PM
b?
 
user142019
c.
 
correct
 
user142019
Oh
 
wrong
 
user142019
lol precedence. xD
 
7:33 PM
yes
 
user142019
Hmm.
 
, has the lowest precedence of all IIRC
 
user142019
Yes.
 
user142019
auto operator,(F f, T x) {
    return f(x);
}
 
The comma operator is under-understood (stood?) :)
 
user142019
7:34 PM
overstood :D
 
The comma operator is overconfused.
 
That's why x += 1, 2, 3 works
 
the comma should never have been an operator
 
Ell
couldn't you use it for tuples?
 
Then don't call it an operator.
Call it "comma bullshit" instead of "comma operator".
 
Ell
7:38 PM
tuple<int, int, int> = 1, 2, 3
 
There are better languages where you can make your own operators
@Ell No, that won't work
 
Ell
what operator would you make yourself?
 
There are also better languages with language-level support for tuples :shh:
 
posted on February 04, 2013 by Eric Battalio

In the Community is a regular series spotlighting members of the C++ / developer community. This week, meet Nish, a C++ MVP, author and long-time developer. Nish has been writing code since 1990 when he first got his hands on an 8088 with 640 KB RAM. He has been a Microsoft Visual C++ MVP since October 2002, and maintains an MVP tips and tricks web site - www.voidnish.com where you can find a

 
@rubenvb Dinkumware isn't free IIRC
 
7:41 PM
Apache's C++ library is dead
fyi
 
What about STLPort?
by the way, there's a limited edition of beer <polish>Książęce - Aromatyczne (Korzenne)</polish>, and it tastes really great.
 
Deead
 
oh damn indeed, "2001-2008"
"Last Update: 2011-10-06"
 
@BartekBanachewicz well no, of course not. You said you knew a better one. I already went over all the open source ones.
 
Besides AFAIR STLport implements SGI STL not standard library
 
7:45 PM
hey, @Feeds is back.
Hi @Feeds!
 
Well the josuttis quote is rather nice.
they say it's compatible with some ISO thingy, but I dunno if it's C++ or STL
 
@CatPlusPlus It used to
@CatPlusPlus But last I checked, they'd changed that at some point
The google description says:
> A port of the original STL to many platforms. Derived from the SGI implementation, changes are incorporated regularly.
 
It's dead anyway
 
> Multiplatform C++ Standard Library (STL implementation). Many compilers and operational environments supported. Standard (ISO/IEC 14882) compliance. Maximum efficiency. Exception and thread safety. Debug mode.
So, they don't really know.
 
Also, there's Boost 1.53 with atomic and coroutine
I wonder how hard would it be to use boost containers
using std::vector = boost::containers::vector; ?
 
7:51 PM
@BartekBanachewicz lockfree even cooler
 
can Boost exist on its own at all?
I thought it didn't implement everything
 
@rubenvb No, it needs a C++ compiler.
 
You have a bug in your code. A(b); is equivalent to A b;, so it does not pass b to any constructors. — Johannes Schaub - litb 23 secs ago
 
@rubenvb it implements everything, but uses what's available locally
> Boost.Container does not support initializer lists when constructing or assigning containers but it will support it for compilers with initialized-list suppor
What is that supposed to mean?
 
7:56 PM
oh wow.
So I could write a boost wrapping std C++ library and be as complete as boost is?
 
Source.cpp(17): error : no instance of constructor "boost::container::vector<T, Allocator>::vector [with T=int, Allocator=std::allocator<int>]" matches the argument list
1>              argument types are: (int, int, int)
1>    	boost::container::vector<int> v { 3, 2, 1 };
what do you mean by boost wrapping std C++ library?
fucking fuck.
 
@BartekBanachewicz as in, a bunch of headers containing using statements, which wraps boost's implementation of everything and instead name it std, effectively being a standard library.
 
@rubenvb are you aware that it's UB?
 
@BartekBanachewicz not if I was writing the standard library.
which in this case, I would be.
 
point taken.
anyway, as you can see, initializer lists seem fucked
it doesn't work on coliru too.
 
7:59 PM
wait. just about 2 minutes ago my comment had +1
now it is at +0 again
what happened!
 
someone downvoted it
 
@BartekBanachewicz that's probably just unimplemented, and planned to work.
 
can't downvote comments...
 
@JohannesSchaub-litb you can if you flip your screen. The arrow will be then pointing down
 
remove upvote? Idk if toggle works
 
8:00 PM
you will still have upvoted it
 
@rubenvb I just quoted the docs a while ago.
@JohannesSchaub-litb ... no shit, sherlock. Someone just took their upvote down. You have like 5 minutes for it.
 
@BartekBanachewicz you cannot undo a comment upvote
 
@BartekBanachewicz yeah, it said confusing confuzzlement ... but it will support it for compilers with initialized-list support
 
@BartekBanachewicz ohh i had no idea!
 
@JohannesSchaub-litb Within the first 40 seconds you can if you didn't navigate away.
 
8:01 PM
@JohannesSchaub-litb if you're quick enough you can.
 
WOWOWOWOW
this is just.... WOW!
 
...
it's like we gave him a new toy
@rubenvb well does it mean "it will in some uknown future"? Because that would suck
 
@BartekBanachewicz I read that as "it should work, but we've been lazy smartasses working on template wankery".
 
@rubenvb Right now it ain't working.
Tested on ICC 13.0 and Coliru, which is IIRC 4.7
 
why does this fail!?
comma op
GCC bug!?
 
8:05 PM
you can't create a temporary in expression, me think
 
Ell
where is temporary being created?
int(a)?
 
@JohannesSchaub-litb It's parsed as int a, b++; I guess.
 
"int(a)" does not create a temporary. it just casts to an int.
 
@FredOverflow that's bullshit.
 
8:06 PM
@FredOverflow why is this!?
 
@JohannesSchaub-litb so is this
 
is it standards compliant?
 
Ell
@BartekBanachewicz but by that, then int(a); shouldn't compile (which it does)
 
@BartekBanachewicz Why? You do know that int(a); means int a; right?
 
8:07 PM
int(answer) = 42;
 
i'm all dizzy now. can you please help me get up again!
 
@Ell it isn't an expression
 
but i wanna say int(a) on the lhs on the comma :(
 
@FredOverflow huh, I thought you could do C-style casts both ways i.e. (int)a and int(a)
 
@JohannesSchaub-litb Try (int(a)) then.
 
8:07 PM
okey, so again (int)(a) is a cast. int (a) can indeed mean creating a variable.
 
@Rapptz You can, but not if it can be parsed as a declaration.
 
hmmm the fan on my laptop died, get it repaired or buy new laptop?
 
is it according to Standards?
 
it's 2.5 years old
not sure where I can get it repaired either
can't do it myself cause I can't get the damn thing open :(
 
fan repairs are cheap. I'd go for it.
 
8:08 PM
I volunteer as a fan, I think your laptop is awesome.
 
@BartekBanachewicz right, but where?
 
ohh i need a new fan. how is your blowrate?
 
@FredOverflow and that is correct
 
@TonyTheLion well probably someplace where you fix hw normally?
 
8:10 PM
@BartekBanachewicz I live in a shithole, there's nothing here for miles
 
0
Q: Does boost::container support C++11 initializer lists?

Bartek BanachewiczAt the Boost.Container website we can read this: Boost.Container does not support initializer lists when constructing or assigning containers but it will support it for compilers with initialized-list support. (...) Excuse me if I'm just dumb, but I don't really know how to read it. Does it...

@TonyTheLion that's too bad. Really nothing you can do about opening it? Replacing a fan isn't usually too hard
 
@TonyTheLion How expensive was your laptop?
 
@BartekBanachewicz I've tried opening it before, it's very hard. I didn't even get very far. It's a Sony Vaio
 
@TonyTheLion oh shuck.
Buy a decent hw next time then.
I don't know what other options you have, really.
 
@FredOverflow I paid 1.300 Euro for it, it was a deal too. It's a high end machine.
 
8:17 PM
@TonyTheLion Then you should definitely look for a way to get your fan fixed. Is there no local hardware store or something?
 
@TonyTheLion ..except the fans? :)
 
@TonyTheLion eh, laptop? >_>
 
What happened to the fans?
 
@JohanLarsson Shit hit 'em.
 
8:18 PM
always does t seems
 
don't think that's covered by any warranty :/
 
@FredOverflow there's PC World, but I fear they are going to be expensive and take a long time to get it done
 
If you fling shit at your fan you don't deserve a warranty.
 
they'll prolly just send it back to Sony
 
Why don't you fix it yourself?
 
8:19 PM
@Rapptz +1
 
I use the vacuum cleaner to remove dust, gf should probably do it though as she has superior skills.
 
Usually when something fucks up with a laptop I own I either try to fix it or if it's utterly fucking broke I go to a site like eBay and get a replacement component.
 
If you shit in your fan, you have bigger problems.
Some of the more powerful CPU fans can levitate ping-pong balls.
A friend and I had quite a bit of fun with that.
 
you can levitate ping-pong ball by blowing on it yourself, i don't see why it's such a big deal
 
but can you levitate a turd?
 
8:21 PM
lol
 
CPU fans a generally weak. Unlike hair dryers would can float a ping-pong ball like a foot into the air.
 
I've always wondered how floating something by blowing air below it is a stable equilibrium (if won't fall to the side if you don't tilt it too much).
 
I think you want large flux and low speed for a cpu fan, less noise.
 
can I call std::inserter with std::end?
 
8:24 PM
@Mysticial I'd say unstable
 
@JohanLarsson No it's actually stable. If you point a hair dryer straight up it will hold a ping pong ball in place.
It will not fall to the side as long as you don't tilt it too much and as long as the flow is strong enough.
There's definitely some physics going on. I have yet to understand it.
 
ok, I trust you but might be device dependent. Sounds like the pressure gets ring shaped somehow.
 
Nor have I tried very hard to look it up.
@JohanLarsson That's what I've been suspecting too.
 
what was above it?
 
@JohanLarsson I've seen it happen with a large number of devices. I think it has more to do with the shape of the object being levitated. I've only seen balls levitate properly.
 
8:27 PM
If it was the sky above I would find it very surprising
 
lawl, @Rapptz.
 
:)
Searching 41 files for "initializer"

C:\MinGW\include\boost\container\detail\config_begin.hpp:
   29     #pragma warning (disable : 4267) // conversion from "X" to "Y", possible loss of data
   30     #pragma warning (disable : 4275) // non DLL-interface classkey "identifier" used as base for DLL-interface classkey "identifier"
   31:    #pragma warning (disable : 4355) // "this" : used in base member initializer list
   32     #pragma warning (disable : 4503) // "identifier" : decorated name length exceeded, name was truncated
 
I wonder how hard would it be to add these f*$!ing constructors.
lazy fuckers.
 
@BartekBanachewicz They're called "f 𝓊 Ꮯ King constructors".
 
too bad nobody upvoted my question. I should've tagged it
 
8:29 PM
Actually, you could potentially use the Robot's zero-width space to prevent "fuck" from being filtered.
 
@Mysticial He uses bananas now.
 
@Mysticial The robot's? It's hardly "his"
 
@MooingDuck I know, but he taught it to us.
 
@Mysticial true
 
8:30 PM
@MooingDuck Didn't you hear? The robot is a unicode expert now.
3
 
@BartekBanachewicz they're different for each compiler in principle (as initializer_list is different)
 
@Rapptz that I knew
 
@Rapptz Why are everyone talking about robots lately?
 
@rubenvb what do you mean "(as initializer_list is different)"
 
@JohanLarsson You don't hang out here enough.
 
8:32 PM
It's 2013, so obviously everyone has one now.
 
@JohanLarsson not robots, our robot
 
including boost makes my compile times soo slow
;_;
 
@Mysticial No I'm mostly lurking.
 
@JohanLarsson it's martinhos nickname
 
ok ty.
 
8:33 PM
@Rapptz I didn't buy an SSD and i7 for nothing.
god dammit fuck.
 
Yeah, most of us have nicknames:
Robot
Ape
Lion (we usually just call him Tony)
Duck
Cat
Puppy
 
I'm waiting for processors and SSDs to get cheaper before I rebuild
 
And the branch-optimization freak.
 
I don't have a nickname.
 
@Mysticial and Tomalak
 
8:35 PM
At least not in this room.
 
Tomalak was his actual name before Lightness
 
@Mysticial we don't use it when you're around.
 
wut
So I have a nick that I'm not aware of?
 
It's Mystical
 
PinkGirl?
 
8:35 PM
that's going to be the best troll ever
 
Your nickname is Mystical
 
oh wait.
 
@Mysticial "no"
 
@JohanLarsson I change my AV too often for that apply.
 
8:36 PM
You've changed it twice
?_?
 
@Rapptz more than that, I remember three
no wait, three avatars = two changes. right.
 
You've changed your avatar?
 
The ape calls me a drunkard if I go cross country skiing. Maybe he is provoked by the extremely healthy in it?
 
Oh hey I found a post of mine that I quite like
6
A: How throw, try {} catch {} should be used in the real world?

Cat Plus PlusEvery site that handles the error needs try-catch block. It all depends on your design, but I doubt you need to handle the error in every rotate_in_place call-site, you probably get away from propagating upwards most of the time. Printing the error and using exit is bad for three reasons: You ...

 
@CatPlusPlus how long have you been programming for?
 
8:38 PM
Well lemme count:
Bokurano: Machi
Sora no Woto: Rio
Accel World: Kuroyukihime
Hayate no Gotoku: Hinagiku
So yeah, 3 changes.
Not counting the default gravatar I had for a month at the beginning.
 
@TonyTheLion 11 years
Give or take
 
oh wow
 
that's not that long
i mean, there are probably inbred asians taught to code at age 5
 
I started coding at 30+
 
Is there a way to get the files for a single boost library easily?
 
8:43 PM
Run bcp
Copying single libraries doesn't really work because of interdependencies
 
@CatPlusPlus yeah I know
@CatPlusPlus thanks
 
@BartekBanachewicz the internal representation is different dependning on the compiler.
 
@rubenvb sorry, correct me if I'm wrong, but.... There's an std::initializer_list. Everyone can use it. Why can't boost do it?
 
user1182183
hm u guys knowledgable about database systems too? ; o
 
we know everything about everything
 
user1182183
8:49 PM
I just read this
 
user1182183
and now I'm wondering, if we should not use mysql, what should we use?
 
@GamErix PostgreSQL
 
@BartekBanachewicz well, yes, it can, but ... but but... butbutbut.
 
@rubenvb shut it. It can, they are just lazy fuckers. Say that aloud.
 
user1182183
@BartekBanachewicz and there I don't have to worry about maintaining my DB, performance tunings, etc? (like mentioned in the MySQL drawbacks)
 
8:50 PM
47 mins ago, by rubenvb
@BartekBanachewicz I read that as "it should work, but we've been lazy smartasses working on template wankery".
 
@GamErix you always have to worry, or you don't have to worry at all. How many dozens of millions of users do you have?
@rubenvb ?
 
copy paste fail
 
okey then.
 
user1182183
@BartekBanachewicz millions? Well that will be about 0.005 million max
 
user1182183
and max ~32k rows in the biggest tables
 
user142019
8:52 PM
oh lol ActionScript also has XML literals.
 
@GamErix so it's premature optimization. Use postgres because it has a better name.
 
@BartekBanachewicz The compiler can create an std::initializer_list implicitly from something like {1,2,3}. For that to work, the definition you create for std::initializer_list has to match what the compiler will create. Every compiler I know of that can create an initializer_list from a braced initializer list, also includes a definition of initializer_list for you to use, so I'm not sure what would be gained by Boost trying to define it themselves.
 
user1182183
@BartekBanachewicz k thx :P
 
@JerryCoffin That's not the point. The point is, why doesn't initializer lists work with Boost.Container then?
 
@BartekBanachewicz other way around I think. Boost is C++03, Boost doesn't work with initializer lists
 
8:54 PM
Argghhh
BOOST Y U NO C++11
 
@BartekBanachewicz Sorry, I missed that being the topic of discussion. Yes, for that there's no real question they could.
 
@MooingDuck Boost supports C++11 features when available and when the authors are not too lazy.
Boost.Container has moves, for example.
 
@R.MartinhoFernandes never heard that
 
...aaand we're back to "lazy fuckers"
 
8:57 PM
I pity you
 
I like dogs better
 
That's one ugly toilet.
 
and exceptionally dirty, it would seem
 
it's awful
it looks like a seat cover
with bad lighting
 
@DeadMG that's a carpeted seat cover
 
8:58 PM
Post cat pictures => everyone bitches about the toilet.
9
 
@MooingDuck Did someone pee on that seat cover?
 
@EtiennedeMartel no! It's just doesn't fit real well so it folds so it looks funny.
 
@MooingDuck Aaah.
 

« first day (842 days earlier)      last day (4099 days later) »