« first day (1280 days earlier)      last day (3661 days later) » 

9:00 AM
I don't need to find every path GCC will find.
I only need to find libstdc++
 
Then put libstdc++ somewhere you can find it?
 
Hello.
 
only works if I control the target machine.
which I don't.
 
Well, deliver libstdc++ with your distribution.
 
Hmm.. I see that the amount of research done before dumping questions in here is now down to 'first page of Google'. Then the Lounge gets stick for getting annoyed by questions. How about a new bin, dedicated to such deadbeats, where the mods can be directed next time they are prodded into action by some moron?
 
9:04 AM
that would tie me to a specific version
also to libstdc++ as opposed to libc++ or whatever, although I'm not too fussed about the user having to put in a little effort for libc++
 
I where asked in an interview what type and value &abc has:
char abc[11] = "abcdefghjk";
&abc;
 
and... you can't answer?
 
No, I messed it up. But now I want to know..
 
who can blame him, nobody sane uses C-style arrays anyway.
 
so &abc is char(*) [11]
 
9:07 AM
2 mins ago, by Martin James
Hmm.. I see that the amount of research done before dumping questions in here is now down to 'first page of Google'. Then the Lounge gets stick for getting annoyed by questions. How about a new bin, dedicated to such deadbeats, where the mods can be directed next time they are prodded into action by some moron?
 
so you don't even know?
 
yes, the guys where using C and C++ code..
 
user1804599
@Damian the type is decltype(&abc) and the value is &abc.
7
 
^ that
@Damian you might want to consider switching to another language, or maybe, even better, another profession
 
@Damian The type is char (*)[11] (that is, a pointer to an array of 11 characters), and the value is the memory address where the string literal happens to be stored.
 
9:10 AM
I understand I am lame!
 
@Damian Oh, you already figured the type out yourself? Then why did you ask.
 
I guess i want to know how I can declare a variable.. (more lame)..
 
welp... actually I thought it would decay. but it doesn't - coliru.stacked-crooked.com/a/03fd3da804089fe9
 
sigh
 
fuck C++ then.
 
9:12 AM
char* x1[11] = &abc;
does not seems to work
 
user1804599
@FredOverflow nope.
 
user1804599
It is not the address of the string literal.
 
cannot convert from 'char (*)[11]' to 'char *[11]'
 
user1804599
It is the address of abc.
 
9:12 AM
Guys
 
user1804599
template<typename T> using alias = T;
alias<char(*)[11]> x1 = &abc;
 
@rightfold Are you talking about the distinction between compile-time and runtime?
 
user1804599
Also auto or gtfo.
 
user1804599
@FredOverflow No.
 
oh fuck
My mind changed the code to &"abcdefghij" :(
 
user1804599
9:14 AM
char abc[] = "abc"; vs char const* const& abc = "abc";.
 
@Damian ^ try auto x1 = &abc;
 
@FredOverflow lolwat
 
Something, somewhere, went terribly wrong. In my brain.
 
professional deformation. I guess you don't see such ugly code very often
 
user1804599
Hmm.
 
user1804599
9:18 AM
This software will be used at hospitals but I don't think that having an this image and the text "You followed a broken link" is a good idea for a 404 page.
4
 
@Abyx Yes, but they wanted to see how far they could go in the intervew
@rightfold nice to use alias but what would you do before C++11?
 
@rightfold You write real-world software? I'm so proud of you!
char (*x1)[11] = &abc;
 
user1804599
@Damian suicide.
 
Upgrade to C++11
And yeah that
 
user1804599
Or __typeof__ or something dunno.
 
9:20 AM
@FredOverflow RTTI is runtime check
 
Oh no
 
user1804599
template<typename T>
struct alias {
    typedef T type;
};
 
user1804599
Or this.
 
NOT RUNTIME
 
@Damian Why are you talking about RTTI? I never mentioned RTTI.
Damnit, I just noticed RTTI contains "titty" when you pronounce it :(
 
9:22 AM
@FredOverflow runtime checks.. never mind..
@FredOverflow Thank you finally nailed it!!
 
user1804599
@FredOverflow I even get money for it. :3
 
May 16 '13 at 20:53, by FredOverflow
Welcome to C declarator syntax hell.
@rightfold Whore!
;)
 
@Damian now write a function which takes a reference to an array and returns a pointer to array
 
user1804599
@Abyx for extra points, make it a conversion operator.
 
lol
 
9:24 AM
@Abyx Why write a function, can't you just use & for that? :)
 
user1804599
clang once told me I had to use a typedef.
 
user1804599
I think it also hates C declarator syntax.
 
@FredOverflow The point there is the declarator hell.
(I imagine)
 
Okay guys, UAC-question here
:D
Did someone have troubles with checking write permissions
 
9:26 AM
char (*foo)(char (&arg)[N])[N], I believe, but I have no clue if that's it.
 
@Griwes wrong!
 
I was never insane enough to write such a thing without alias.
 
Don't try this, typedef the parts
 
@Abyx ...I don't know if I want to know which part is wrong.
 
template<typename T, unsigned N>
T (*reference_to_pointer(T (&a)[N]))[N]
{
    return &a;
}
@Griwes That would be a pointer to a function returning an array.
 
9:27 AM
@FredOverflow Oh God.
 
user1804599
(*operator int() const)(int, int) {
  return _funcPtr;
}
 
user1804599
This is my favourite.
 
well it's easy
T(*                   )[N]
T(* f(             )  )[N]
T(* f(   T(&)[N]   )  )[N]
 
user1804599
Don't know where to put the explicit, though.
 
rofl
 
9:28 AM
I forgot about that rule.
I felt better not remembering it.
 
someone commented on my CR post from three years ago
 
:D
 
@DeadMG What is CR? linky?
 
3
Q: Lexer code in C++

DeadMGI've got a lexer written in C++ (Visual Studio 2010, so including lambdas and a few other C++0x tricks). This is my first lexing experience, the only other source code interpretation I ever did was trivial, didn't separate parsing and lexing, that sort of thing. The grammar closely resembles C++ ...

you can bet that I don't have anything like that code anymore :P
 
Ah, CR = codereview. Totally forgot about that site.
 
9:31 AM
aw balls.
with my latest commit, instead of just one test failing, all the JITted tests fail.
hard to debug tests that only fail on Linux when you only have Windows.
 
Setup a VM already geez
 
never had much luck with those
 
Hmm.. new extension .. but I am struggling..
char* foo(char* x[20])
{

}
usage:
char* c1 = foo(&abc);
gives me compiler error: 'char *foo(char *[])' : cannot convert argument 1 from 'char (*)[20]' to 'char *[]'
where abc is char* abc[20] = "abcdef";
 
Types are wrong all over
 
// a function which takes a reference to an array and returns a pointer to array
 
9:44 AM
I deleted all my games
 
@DeadMG You should have kept the games and deleted everything else. I'm sorely tempted to do exactly that this morning :(
 
heh
the problem with that is that every time my concentration wanders, I just boot up a game by default instead of going back to work on Wide.
 
@DeadMG I've removed all shortcuts and desktop icons to my games. If I want to play them, I have to drill down with File Explorer. That keep me from playing too often:)
 
user1804599
Consider Wide a game.
 
yeah
I've got to do this massive refactoring
not looking forward to it a great deal
 
9:49 AM
@DeadMG Do you have unit tests?
 
some
 
Apparently, having unit tests takes the fear out of refactoring ;)
(re-fear-ctoring?)
 
ah, I'm not looking forward to it because it means changing basically all of my code :P
rather than because of any inherent fear of breakage, although that's certainly a part of it too.
 
@DeadMG Games you wrote?
 
no
 
9:54 AM
Because I accidentally deleted the source code for one of my games, and I regret it to this day.
 
Best way to protect ourselves from games is to use linux :)
 
Not true, I played OpenArena for 10 minutes the other day ;)
 
@FredOverflow Source control? No way :)
 
@Ockonal That way way before I even considered using source control.
 
9:56 AM
@FredOverflow I hate source controls system
Because I'm developing one at my work
 
:D
 
:)
 
That's the dumbest thing I've heard this month
 
Maybe my english isn't very good. I meant that I'm developing source control system at my work :)
 
@CatPlusPlus what is
 
9:58 AM
@Ockonal Aren't subversion or git good enough for you?
Or do you develop one of those? :)
 
@FredOverflow Our source control is for industrial scale
 
@FredOverflow Both are terrible.
 
:lol:
 
@Ockonal git is used for many commercials products. What exactly makes yours better than git?
 
hmmm
 
9:59 AM
@FredOverflow It has a lot of features like powerful GUI client, merge tools, user accounts with permissions and groups, etc
 
does VS not support rvalue qualifiers...? fuck.
 
None of that requires developing a whole new VCS
So good job on that
 
@DeadMG You mean rvalue for *this? Probably not.
 
@FredOverflow In case of loosing data due to our control system our company pays full damage
 
10:00 AM
@FredOverflow And that is the key feature for industrial :)
 
Not a software feature
 
ah
 
As I know, boeing, cisco etc are using our source control system
 
@Ockonal Wait, is that what it says in the contract? Then you're good, because if somebody loses his data, you're not reliable: "losing" is not the same as "loosing".
 
'Refactoring' does not even come close to what is required for the app I'm working on ATM. Looking at the rough overall requirement, it's fairly easy to pick out that it needs 8 top-level modules - main UI, DB, server, CAN comms, transaction, backup, config and languages. It has three:((
 
10:01 AM
ref-qualifiers is available in CTP but they'd probably be unusably buggy anyway
even more buggy than the rest of the compiler.
 
@FredOverflow Sorry, my english is not so good to understand the correct meaning of your full sentence :)
In other words, if the database or files are corrupted due to mistake in our control system
Our company pays damage in cost of lost data
 
@Ockonal "Loosing" means making something less tight. "Losing" means something disappears.
 
inb4 MH370 joke.
 
@FredOverflow Oh, okay, got it
 
Or would that be "loosening"?
 
user1804599
10:04 AM
@FredOverflow You are such a looser.
2
 
@FredOverflow No
 
@FredOverflow It would.
 
I think "loosing data" would be data that makes you less tight. Like "This girl you always liked wants to have sex with you."
@rightfold "looser" is the comparative of "loose". I am looser than who?
 
"I was loosening the gland on the oil pipe when my face realised that the system was still pressurised".
 
:)
 
10:07 AM
@MartinJames Do you work at a power plant or something? ;)
 
Ahahaha I'm importing this CMS content to Drupal and fixing up links
And a link to file:///E:/torrent%20down/... comes up
 
@rightfold loosener
 
(This is not the only file:/// link, but it's definitely the funniest one)
This is data from production mind
This is published Internet-facing thing
 
it's the funniest one for us too
 
@FredOverflow In garages/lube-bays sometimes:)
 
10:20 AM
Where's all the mods? 10 mins and this is still not dead - stackoverflow.com/q/23151919/2065121
 
don't panic
 
Who cares
 
Just sayin ....
 
What's more important is why SO keeps telling me about mod election that ended months ago
 
@RogerRowland It's spam, offensive and low-quality. Difficult to pick out the best flag reason.
 
10:23 AM
@RogerRowland Karachi Escorts? Do you not like get stoned to death if you call a hooker there?
 
@VáclavZeman lol
@MartinJames interesting tag though ;-)
 
Hmm...
 
I think I just errored out practically every line of code in my entire analyzer :(
 
/me wants to try Google search "karachi escorts" but sadly /me is behind a corporate firewall that would not allow that.
 
tough life
 
Xeo
10:27 AM
@VáclavZeman ... your corporate firewall doesn't allow you to google?
 
@VáclavZeman Honeypot
Also :lol: filtering firewalls
 
@Xeo lol, it does allow that. But it would not allow me to actually see the pages it would find.
 
Shit. It blew away as I was commenting:
'I'll remember this. If I don't get any sex for 10 years and I win the Euromillions, I would still prefer to spend my cash on having 'Karachi Escorts' burnt down'.
 
@VáclavZeman can you see the cached results?
 
10:30 AM
I am not sure I want to even try it here.
 
I don't care, I'm in my home office. That crap has been spammed to multiple forums.
 
I searched for the term 'whore' on gumtree, I got this, quote: 'We have both been riding before if that is required.' @_@
 
There are people who want to work on a farm??
 
@CatPlusPlus there are even people who want to date farmers. It's a funny old world. :p
 
farmers here have 4WD, not sure why you need to be 'experienced in riding' ...
 
10:35 AM
@CatPlusPlus In the summer, on occasion, yes.
 
Weirdos
Another brilliance in linking to content: /en/category/id?lang=kr
 
aw fuck.
ever since I installed ReSharper, the VS multimonitor support is broken.
 
Riding up and down a field, on a sunny day, in a modern tractor with music blasting out is much more fun that being stuck in an office with DB/unicode shit.
 
ah phew, found the settings to fix it right away.
 
> modern tractor
I don't think this will ever sound right to me.
 
10:38 AM
@MartinJames you know there are more options in life than those two, yes?
 
You can do DB/unicode shit while riding a modern tractor
 
also I'm pretty sure that "working on a farm" entails more than driving around a field listening to music
I could be wrong, a city boy like me
 
@jalf Sure. Lying on a beach, just next to the bar, is also better. Unfortunately, it doesn't pay.
@jalf Oh, it certainly does. That's why I posted 'In the summer, on occasion':)
 
so you get paid for the tractor driving then? :p
 
@jalf No - I'm not very good at it. I have no instinct to plough straight and I leave big bits round the hedges. I've just helped out on odd occasions.
 
10:43 AM
In which case, you might as well be lying on a beach, just next to the bar, yes? :p
also boo, Amazon ditching free shipping to half of Europe including Denmark)
 
Xeo
wut?
 
@jalf That costs money, and I'm not owed any favours afterwards;)
@jalf Eh? WTF?
 
Oh - 'FREE Super Saver Delivery will no longer be available for deliveries to Belgium, Denmark, Finland, Gibraltar, Iceland, Luxembourg, Netherlands, Poland, Portugal or Sweden'
 
Xeo
Oh, Amazon.co.uk
 
10:45 AM
you are paying for the delivery directly or indirectly
 
I was just about to say
 
Xeo
Cool, Germany's not on that list :D
 
are you sure that just means they won't ship from the UK to Denmark for free?
 
@DeadMG What's the distinction?
other than yes, I could ask them to ship from the US instead by using amazon.com, which wouldn't be free either
 
Xeo
> FREE Super Saver Delivery is available if you're ordering items for delivery within the UK or Republic of Ireland.
Oh, so I guess Germany never was on that list to begin with
 
10:47 AM
@DeadMG Maybe, but it makes no sense - Amazon don't have any depots in mainland Europe?
 
isn't there a Denmark-local Amazon?
 
Xeo
@jalf Try Amazon.de :P
 
@DeadMG nah
 
huh.
 
haven't checked, I guess they might have a danish-language version of amazon.co.uk or something
but they don't operate out of Denmark (or most other countries)
 
10:48 AM
how odd.
 
@DeadMG it would be pretty hugely inefficient for them to have to operate sites in every country, woudln't it?
 
Xeo
IIRC there aren't that many different amazon sites. .de, .co.uk, .com, .fr (?), .co.jp are those that I remember
 
would it?
 
having to keep copies of every damn book in depots in every country? (And pay people in every country to work there and ship orders and whatever)
 
I'm not sure that shipping from China to Greece is any further than shipping from China to Britain.
 
10:49 AM
@DeadMG Yeah - Amazon sorta, well, sell a lot of physical stuff that needs, well, physical delivery.
 
@jalf True, but you'd also need fewer of them in Britain, and open yourself up to new markets.
 
@DeadMG they're already open to those markets. People just use the nearest available one. Like co.uk or .de for all of Europe
 
well
I guess that if there's no competition that offers a better deal on shipping then they are effectively
 
Also weird - when I buy non-download stuff from Amazon, it gets delivered by DPD which, IIRC, is German.
 
@DeadMG Do they even have more than one site in Britain?
@DeadMG there are some, but they aren't as well known, and don't have the same selection
 
Xeo
10:52 AM
@MartinJames It was German at one point (Deutscher Paket Dienst, IIRC), but that is long ago. Now the DPD isn't an acronym anymore and they operate Europe-wide, I think.
 
play.com has free shipping to most of Europe on all orders (or they did last I checked. Idk if they've changed that)
 
@Xeo Ah.. OK:)
 
11:03 AM
@R.MartinhoFernandes so... the guy made another awesome tool! meetingcpp.com/index.php/br/items/… This article is pretty representative of his Qt talk in Meeting C++ :| (the failed video recording "tool")
> This tool has a single purpose: to enable people to easily vote on the submitted talks for Meeting C++ 2014. Around 300 people will receive an XML voting file per email, which they can load into the tool. Each talk can be rated between 0 and 5 points, optional you might also leave a comment. But the vote is far more important then the comment.
> As each talk is rated by the sum of its votes, the vote decides which talks could make it to the conference. The saved voting results file will be imported into my own back end, which is already prepared to handle the vote import.
So much braindamage right there.
 
@jalf I'd totally forgotten about them. I haven't ordered anything from Play since I stopped purchasing physical games.
 
Yes, please "insert the saved voting results file into your own back end" [sic]
 
oh man I just noticed that.
 
Good thing he prepared his back end :)
 
user1804599
> typedef std::vector talk_container;
 
user1804599
11:09 AM
Also plural class name kek
 
@rightfold seems legit o.O (no angle brackets were harmed, I promise)
The angle brackets would get stuck when inserted into the back end, obviously.
 
@sehe kinky
 
user1804599
Rope kinkiest data structure.
 
ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooold
boooooooooooooooooooooooooooooooooooooooooooooooooo
 
user1804599
11:13 AM
Needles are also hot. Haystacks not so much.
 
The latter being unfortunately much easier to find
 
lol
 
@sehe Not in my office.
 
Ok, I won't do it in your office
 
not sure why you have so many needles in your office ...
are you running an escort service?
 
11:16 AM
Christmas tree with fear of abandonment
 
@telkitty.exe No, my office is not in Karachi.
@telkitty.exe I don't know how many needles there are in here, but I'm pretty certain there are no haystacks, (unless you count the giant haystacks that is Bailey - he's in maximum-coating mode again).
 
@MartinJames it isn't?
I just checked out Karachi. Doesn't seem like a super-nice place to visit.
 
@StackedCrooked Not as of 10 minutes ago though, since the blinds are closed, I may have been transported without my knowledge.
 
Still better than being transported to Australia;)
 
11:23 AM
Australia would be nicer than Pakistan.
 
magpies have been bullying the pet chooks
 
That was interesting the first time it was mentioned.
Apr 12 at 11:24, by Cat Plus Plus
You seem to be obsessed with magpies that's not healthy
 
user1804599
@sehe Hay in a needle stack.
 
user1804599
@sehe pyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyython
 
Magpies are intelligent birds ... which I can use a broom on. Nowadays, whenever they are caught wanting to swoop/bully the chickens, they would pretend to be checking out something else - those little bastards. Once you turn your back and go into the house, they would start bullying the chooks again
 
11:29 AM
room topic changed to Lounge<C++>: Don't Bully The Chooks, Please loungecpp.net [c++] [c++11] [c++1y] [c++-faq] [c++-magpie]
 
@sehe maybe magpies keep her sane. if magpies would disappear from the planet she'd grow 10x her size into some godzilla monster.
 
I think that's preferrable
 
user1804599
vagpie
 
user1804599
creampie
 
11:31 AM
tsjeempie
 
I think many could be found by turning on unused-variable warnings.
 
Bugs, bugs everywhere
 
He's artist
 
@Ockonal "allemaal beestjes"
 
 
user1804599
11:33 AM
aww what a cutie
 
user1804599
oh wait
 
xD
 
user1804599
Hmm.
 
user1804599
I was wondering why my code didn't compile.
 
user1804599
11:34 AM
Happens the file wasn't included by the file passed to the compiler.
 
I spent 15 minutes trying to understand a lot of silly warnings&errors from compiler
 
never seen a rhino on a swing ...
 
And found that I included cpp himself
 
user1804599
Maybe I should just generate style.less before passing it to the compiler.
 
11:36 AM
If you all remember, few days ago I have complained about a book at Google Play not having any double quotes and apostrophes in it and about a stock reply that I got.
Well, it seems Google has fixed the issue!
 
It's a great weather outside the office
Why should I write code instead?
 
skin cancer kills?
 
@telkitty.exe Cancer kills, no matter where it originates.
 
One of my friends got breast cancer, she didn't die ...
 
@telkitty.exe OK, untreated cancer kills.
Often even treated cancer kills.
 
11:42 AM
@Ockonal An excellent question to which I have no answer. Also, here, the Vernon Arms is open.. :)
 
 
@rightfold Yup - I too have found that not actually compiling the code stops it getting compiled:)
@heron I guess waiting one hour before dumping is better than in some other cases. You should be aware that US developers, who may be able to answer your question, are not even up yet.
VMware has crashed:( Need reboot.
 
HALP
WE'RE WITHOUT NEWBIE HINTS
 
@MartinJames What is Vernon Arms? :)
 

« first day (1280 days earlier)      last day (3661 days later) »