« first day (1331 days earlier)      last day (3618 days later) » 

user1804599
12:01 AM
But for runtime polymorphism You surely needs Virtual Functions in c++ .Without that You can not achieve Runtime Polymorphism. — farhangdon 42 secs ago
 
user1804599
lol at capitalisation
 
user1804599
Alex get out.
 
user1804599
Stop removing your messages or get the fuck out.
 
6 messages moved to bin
 
user2985029
a life in four chapters?
 
user2985029
12:08 AM
what mask do i wear?
 
user2985029
mishima
 
@Alex You are a mask, worn by others (unfortunately, all of them losers, apparently).
 
user2985029
i walk away
 
user2985029
12:23 AM
the hot darkness of action
 
user2985029
my mind was at ease
 
user2985029
here is the moment i have always been seeking
 
user2985029
long live the emperor
 
damnit... now i know what i want for christmas
 
@Borgleader I figured you were still working on that "two front teeth" thing.
 
12:29 AM
O.o two front teeth? wut?
 
He's calling you a baby, I think.
 
user2985029
emporer?
 
1 message moved to bin
Once was more than enough.
 
@Rapptz Oh =.=;
 
@Rapptz No, not a baby. You don't start losing teeth until you're around six years old or so...
 
12:40 AM
@JerryCoffin Oh. I thought you meant he was wishing for two front teeth.
Making him a toddler or so.
 
@Rapptz A nine year-old (for example) who's just lost his two front (baby) teeth would be wishing for his two front (adult) teeth. Front teeth are (normally) the first a toddler gets, so they have them long before they really have a clue what teeth are about.
 
I have ~1.5lt of Moretti. AMA.
 
@Jefffrey I'm sorry to hear about that. Soon you may grow enough taste to prevent this problem from recurring.
 
We are kind of forced to drink it from now until the end of the World Cup.
> Microsoft account passwords contain up to 16 characters. If you’ve been using a password that has more than 16 characters, enter the first 16.
wtf
 
user3010322
... Lolwat.
 
@Jefffrey Thank <insert reference to preferred deity here> I don't have to deal with that!
 
user image
2
@Mysticial ^ you're the only Pokemon player I know
 
@Rapptz lol
 
user2985029
1:06 AM
bitch
 
Alex man, go to sleep.
 
user3010322
1:32 AM
#ifdef __MINGW32__
 
user3010322
is the mingw define, right?
 
@ThePhD I preferred the boldface.
 
user3010322
It was actually kinda pretty.
 
So how good is Mingw
 
1:36 AM
@crasic Vote to Close. Primarily opinion Based.
 
God fuck. I almost got into accident when a massive daddy longleg dropped in front of my face while I was driving.
@Rapptz lol
 
It only happened because my dad suggested that I leave the window open let some air in. (I park in the garage.)
Terrible idea.
After a couple months of doing that, the spider got in (probably more).
 
Its not a spider
 
Yeah, I don't care.
 
1:45 AM
Its an arachnid though
 
@crasic Having experience traffic on the 101, I'm gonna guess he didn't have time to count the number of legs (nor the inclination to care).
 
hm
101
you guys are close
You don't count legs
arachnids all have 8
A tick is an arachnid, but not a spider
 
@crasic A tick is .25 nS (at 4 GHz).
 
heh
I don't drive the 101
I have 880
shudders
Anybody catch the premier of Halt and Catch Fire
Wondering if its any good
 
@crasic My preferred route is the 680, left on CA 12, North on CA 29...
 
1:53 AM
bwahahaha xD
i havent laughed this much at a star wars joke in a while
 
I'm in EB commuting to SF
luckily nobody cares when I'm there, so either before 5 or after 11
am
 
@Borgleader That's from a show called Robot Chicken.
 
I should watch that
 
It has seth green
but so does family guy
 
Mass Effect also has Seth Green :3
 
1:56 AM
their star wars episodes were fantastic though (robot chicken not fg)
 
user3010322
:||||||||||
 
user3010322
Are even my macros VC++ specific?
 
user3010322
#define charcc2(b0, b1) ( (#@b0) | ((#@b1) << 8) )
 
yes
 
user3010322
Tell me that's regular macro syntax
 
1:57 AM
that's a VC++ extension iirc
 
user3010322
Uggggggggggggggghhhhhhhhhhhhhhhhhhhhhh
 
Oh man, this is hilarious
sorry @ThePhD
 
user3010322
Well, fuck!
 
user3010322
Whatever, I didn't need it anyways.
 
general rule is the precomp stuff is compiler specific and full of extensions
 
If you wrap VC++ precomp stuff in an ifdef endif block will gcc still complain?
 
user3010322
Same 10 cpp files
 
user3010322
I'll always compile the same 10 cpp files until I die.
 
I'm surprised
That seems really useful.
It should be a standard feature :v
 
talk to stalman
 
user3010322
2:00 AM
Not gonna happen.
 
user3010322
Changes to the preprocessor at this point are probably never going to be considered.
 
it was changed in 2011
I wonder.
 
@Rapptz It was mostly changed in or before 1999 (by the C committee). Then the C++ committee adopted those changes in the 2011 standard.
 
I'm referring to C11's _Generic thing
though I don't know if it really counts
it is preprocessor specific
 
@Rapptz Oh, that. I guess it's open to question/debate.
 
2:03 AM
I wonder if C and C++'s committee are mostly the same.
Cause C11 and C++11 share some features.
char16_t, char32_t, static_assert, atomics, threads, alignment stuff, etc
 
@Rapptz There are a few people who are on both committees, and I'm pretty sure (at least) one to act as an official liaison between the two--but the percentage who are active on both is pretty small. Nonetheless, they clearly (at least attempt to) cooperate to at least some degree.
 
Star Citizen made 358k$ today o.o holy fucking shit
 
I think the cooperation is largely one-sided though. The C++ committee tries to cooperate with the C committee, but all too many on the C committee are convinced that C++ is a mess and they should do their best to screw it over whenever possible.
We really need "OP is too clueless to understand an answer" as a reason to close. stackoverflow.com/q/24102383/179910
 
@JerryCoffin So they're trying to bring C++ back down to C level? (punintended)
 
@Borgleader Not really--it's more like most are trying to return to 1985, when C dominated, and C++ (along with Java, Ruby, Python, the web, ...) was essentially unknown.
 
2:14 AM
@JerryCoffin o.o why would anyone want to go back to the dark ages of programming?
 
Guy has less than 3k rep though
 
@Borgleader They apparently don't see it as the dark ages. I think a pretty fair case could be made that a lot of current systems qualify as "baroque".
Actually, many are probably more Gothic than Baroque. "Sorry, that wall between public and private data was a little too weak. We're going to have to add some flying buttresses to keep the whole thing from collapsing."
What? My site has massive quantities of useless stupidity? Sure, but look at how each of these widgets is completely unique from all the others. All hand-crafted, and each a unique expression of the artist's insanity!
 
2:38 AM
@JerryCoffin I wouldn't be surprised if they believed most of the myths about C++ and the standard library... it's amazing how many 100k users on SO still believe them. I even got a 100k user telling people not to use std::function because it "Might introduce overhead" seriously people... a good compiler will get rid of that shit quickly.
 
@Mgetz but good compilers are a myth ;)
 
user3010322
q___q C++ compilers RIP MY SOUL
 
@Borgleader shh don't tell people that, or they will realize it applies to all languages
@ThePhD you mean VC++?
 
user3010322
You know what,
 
@Mgetz Well std::function is a mess AFAIK. Sometimes it's better to just use templates.
 
2:47 AM
@Jefffrey at least in my experiments the compiler was able to elide common cases, either converting it to a straight function pointer or getting rid of the pointer all together and using a direct call.
 
Don't use std::function for parameters.
 
I don't
I actually haven't found a use case for it
 
See:
Jan 20 at 10:06, by Xeo
it's simply the wrong tool
 
user3010322
Unfortunately, if you can't template your shit then using making your parameters a std::function is somewhat necessary.
 
user3010322
Unless you do the whole interface-abstraction thing.
 
Xeo
2:49 AM
hai
 
@ThePhD I've found this to be easier.. you just return a std::unique_ptr
 
wat
what does std::unique_ptr have to do with it?
 
Xeo
sleep
 
@Jefffrey either you return a base class pointer (e.g. using a pure virtual base class) or you can return a direct pointer to the function with the behavior you need
either way I'm off to bed
 
user3010322
@Xeo Why are you up so early?
 
user3010322
3:19 AM
std::hash<T> is not defined for T == enumeration type?
 
no
surprised though
> In addition to the above, standard library provides specializations for all (scoped and unscoped) enumeration types (which are not required, but usually are implemented as std::hash<std::underlying_type<Enum>::type>)
(since C++14)
C++14 only thing apparently
 
user3010322
Fuck.
 
user3010322
How do they expect me to make an override for that...
 
user3010322
... Well, whatever. Here goes.
 
user3010322
template <typename Enum>
	struct hash<typename std::enable_ifstd::is_enum<Enum>::value>::type> {
		std::size_t operator()( const Enum& e ) const {
			typedef typename std::underlying_type<Enum>::type enum_t;
			std::hash<enum_t> h{};
			return h(e);
		}
	};
 
user3010322
3:32 AM
Something tells me this shit ain't legal.
 
::type is void, for starters.
 
user3010322
Mmm.
 
template<typename T>
struct hash<typename std::enable_if<std::is_enum<T>::value, T>::type> : public std::hash<typename std::underlying_type<T>::type> {};
can you do that?
a saner alternative might be to make my_hash and pass that instead of std::hash?
 
user3010322
It won't work.
 
user3010322
3:37 AM
Library can burn in hell.
 
but.. but I am...
 
user3010322
That's g++ with std=c++1y
 
user3010322
If it doesn't work there I'm not getting anywhere.
 
sleep
 
3:56 AM
@LightnessRacesinOrbit that's just sad
> I ask a lot of questions and "I have extreemly low tolerance for the stupid bullshit" (G. Carlin). Yes, beauty is not relative. Particularly, this means that I do not accept bullshit. Circular argument (it is so because it is so) or unrelated details are not arguments. Do you consider this rude? Go fuck. I'd rather offend people than pander to them.
 
why isn't his butt banned yet
 
:D
I'm going to have to start using that one
 
4:00 AM
he he
 
TIL std::log is not log_10(x) but instead it is ln(x).
 
@Rapptz Seems reasonable.
also duh
 
I would actually expected it to be log_2.
 
lol
mathematical regional differences are interesting
 
4:02 AM
in here log(x) usually defaults to base 10 log
except in calculus where it defaults to base e.
which I guess is kind of strange
(this question made me look it up)
1
Q: Difficult Indefinite Integral

user155812$$\int (\log x+1)x^x\,dx$$ This integral was found from the MIT Integration Bee. After making several unsuccessful attempts, I decided to type it into Mathematica, only to find that Mathematica could only produce an answer for this integral in the case where $\log(x)$ referred to the natural log...

 
@Rapptz It sort of does here too, in maths, but for some reason I don't think that way in programming.
Dunno, maybe I just got lucky
 
The term $\log$ in mathematics has the default meaning of natural logarithm. Widespread use of $\ln$ is relatively recent. The integration is easy, since $x^x=\exp(x\log x)$. Let $u=x\log x$. — André Nicolas 4 hours ago
 
@Rapptz that question reminds me how much I really really do not miss all that shite
I was fairly good at it in school but to say I enjoyed it would be quite a reach
and look at all those people still going at it in their 30s, 40s. well done, I say. not for me.
 
Mathematics is the best.
:D
 
diagnosing a bug in horrendous C-like C++ code? far more entertaining
trolling SO? now you're talking!
yeah I have my priorities in order biatches
 
4:09 AM
Combining mathematics and programming (i.e. project euler) is a bit entertaining.
 	visited 	707 days, 666 consecutive
interesting.
 
4:19 AM
#evil
        visited         1068 days, 152 consecutive
#sad
I wonder what the heck I was thinking 153 days ago
 
> visited 643 days, 400 consecutive
:D
 
user3010322
Hm.
 
user3010322
> 174 days, 28 consecutive
 
user3010322
Get at me!
 
user3010322
The fact that my_member_variable is not implicitly this->my_member_variable in g++ in a template class and the fact that I HAVE to qualify it with this-> is just mind-bogglingly retarded.
 
4:25 AM
I vaguely recall that rule
 
welcome to two phase lookup btw
 
btw "class template" plzkthx
C++, particularly C++11 and onwards, is massively full of abstraction leaks. It's like they've made a new type of shoe, out of socks.
 
user3010322
@LightnessRacesinOrbit Maybe templated class?
 
your bias is showing bud
 
@ThePhD absolutely not
@Rapptz If by "bias" you mean "experience and expert opinion" then yes I should certainly hope so
 
user3010322
4:27 AM
AWW SHIT
 
user3010322
I can't do it anymore Fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuck
 
Not what I meant at all.
 
@Rapptz Then I have no idea why you said that. Why am I "biased" just because I am consistent in my criticism of the language? Are you suggesting that I have some sort of inexcusable inherent hatred that prohibits objective analysis? I'd be interested to learn the details of that, if so...
 
No, because C++11 has fixed a lot of the silly inconsistent stuff (but still has let some slip by). I'd say through that alone that C++03 might have more leaky abstractions from what I've observed.
 
(I'm just gonna keep this going until the twat next door finally finishes his party so I can get to sleep)
 
user3010322
4:29 AM
make_unique made it into std=c++1y g++ 4.9, right?
 
@ThePhD yes
 
user3010322
Oh, thank god.
 
@Rapptz Ah, well, I consider a lot of the move semantics stuff (to take one example in particular) to be full of leaks, so if you don't hold the same opinion then that would certainly explain our differing views in this regard
don't blame "bias" though please :/
 
I don't know how you think move semantics is leaky.
 
@ThePhD Full regex support, too!
@Rapptz Just lucky I guess :)
 
4:30 AM
Hopefully you're better than nightcracker (?) though
 
dno who that is
I mean I recognise the name, vaguely
but beyond that...
 
He thought you had to specify std::move for every move you wanted to make :v
 
I have a hard time keeping track of all the erroneous opinions of Loungers
 
Which makes me wonder
Do you think that the fact this isn't the case a leaky abstraction?
 
@Rapptz Not as bad as those people who think std::move performs a move. Idiots! >.<
@Rapptz Well, sort of, but not really
I think the things that make std::move necessary in the first place make it so
I don't really have a full argument to support that in me right now (5.32am), but that's about the gist of it
 
4:32 AM
I don't think so.
like
 
std::unique_ptr<int> x(...);
f(x);
I think std::move(x) there shows clear intent
just my two cents though
 
user3010322
whdajwdk
 
user3010322
Who
 
user3010322
4:32 AM
In their right fucking mind
 
user3010322
thought I need to go throgh 2 extra panels
 
user3010322
just to do an "Advanced" find and replace?!
 
?
 
I think I'd prefer it if (a) yes, that were always required in order to produce a move, and (b) std::move itself actually meant what it said
 
user3010322
Case sensitivity is a BASIC CHECKBOX NOT A WHOLE GODDAMN NEW PANEL
 
user3010322
4:33 AM
Holy fucking shit who makes this SOFTWARE
 
someone who's about as good at programming as you? :)
 
ctrl + shift + f
 
^ this
 
user3010322
@Rapptz Doesn't change the fact that they don't have a textbox for "and this is what I want you to replace after you do the search"
 
the whole value category thing, as exposed to the programmer, is trolling plain and simple
move via rvalue refs and overloaded ctors is about as hackish as you can get
 
user3010322
4:35 AM
Instead, I need to search, get the right results, go to the new textbox, enter the replacement (after deciding whether I want regex or not: if I change my mind I have to go backwards and throw away the first search results),
 
user3010322
and then hit replace.
 
I've kind of never worried about all the value categories when programming
just the super categories lvalue and rvalue
 
generally feasible
I still think fuck those two
> Go fuck.
 
they're in C++03, albeit a bit different.
:v
 
This question appears to be off-topic because SO is not an error message guessing competition. — Lightness Races in Orbit 5 secs ago
Name changed to: H2CO3
@Rapptz i know that
C++ has always had this problem
I just think it got worse as time went on, in that you pretty much have to know what lvalue/rvalue means in C++11 if you want to use it effectively
 
4:37 AM
you could have dupe hammered that
but you wanted to sneak in your joke didn't you :(
 
pfft not worthy of being a dup
jokes aside, you're right - didn't spot that prior comment
dammit
 
user3010322
Oh.
 
user3010322
I forgot every program ever -- even delicate text editors -- send you shit to the unrecoverable void of bitspace.
 
preshus litel text editor
 
are you talking about backups?
 
user3010322
4:39 AM
No, just programs in general.
 
user3010322
When yuo delete something it never sends it to the recycle bin.
 
oh
 
user3010322
Good thing I have version control. :v
 
good thing you have other skills
 
Might be because it's more effort to move to the recycle bin than just delete it programmatically anyway.
 
4:40 AM
btw Notepad++ does the recycle bin these days. it's actually kinda annoying (oddly)
 
I'd be annoyed too.
When I say delete, I mean delete :v
not move to recycle bin
 
user3010322
I'd like it if it put stuff in the recycle bin...
 
user3010322
I feel like it should be just something it asks you once and defaults to what you selected the first time.
 
user3010322
> users to capable of handling a powerful tool and not need excessive nanny message boxes.
 
user3010322
4:44 AM
Lolol
 
This made me remember that on Linux I have trash://.
 
user3010322
Does it ever get used?
 
@Rapptz I think it's the fact that it prompts me whether I'm sure
Am I sure I want to not-permanently not-delete something? Sure, just do it
 
I don't use the recycle bin
I get annoyed when garbage ends up there
 
I don't mind that so much
it accumulates, I empty every few months. no harm done
one day I'll be glad for it
 
4:47 AM
Same here I guess
I've only recovered a file from the recycle bin like twice in the past 5 years though.
 
user3010322
I like the ability to reverse accidental deletes with Ctrl + Z
 
it doesn't bother me enough to wilfully fuck myself over once every 2.5 years
just don't prompt me every fucking time if it's only going to the RB
go fuck
 
> If the implementation supports floating-point infinities, the macro INFINITY expands to constant expression of type float which evaluates to positive or unsigned infinity.

If the implementation does not support floating-point infinities, the macro INFINITY expands to a positive value that is guaranteed to overflow a float at compile time, and the use of this macro generates a compiler warning.
 
4:54 AM
ok
 
cool
Stargate: Galaxy
 
user3010322
I'm not gonna make it in time...
 
user3010322
I can't fight GCC... I switched too late...
 
user3010322
DirectWrite, XAudio don't work at all...
 
user3010322
I can't even begin to imagine what the core DirectX and GDI+ text is going to be like on MinGW...
 
4:58 AM
I think it's bedtime.
No, I know it.
CIAO BELLAS
Parting gift, this time for @R.MartinhoFernandes:
17
Q: VS2013 very strange behavior

Alex JoukovskyMy copy of VS2013 Ultimate compiles this code for 60+ seconds: class Program { static void Main(string[] args) { double dichotomy = Dichotomy( d => { try { int size = (int) d; byte[] b...

dat title...
 
dem upvotes :s
also hello
 
Final parting gift:
Long-standing user, high rep.. I'd expect some punctuation and for you not to encourage low quality non-questions by answering them... just a thought... — Lightness Races in Orbit 13 secs ago
4 years, 6 months, 29.4k, acting like a noob. sigh.
really going now
<3
 
> (Reuters) - Canadian police on Thursday mounted a massive hunt for a 24-year-old gunman they suspect shot dead three officers and wounded two more in the eastern city of Moncton.

The incident was one of the worst of its kind in Canada, where fatal attacks on police are rare.
is this real life? :(
three dead is "one of the worst of its kind" in Canadaland?
sounds fancy
 
user3010322
5:40 AM
@Rapptz Damn, that sucks.
 
user3010322
God jesus fuck
 
user3010322
MinGW is balls-stupid
 
user3010322
double-including two headers which DEFINE THE SAME THINGS
 
user3010322
How did they get away when compiling this D3D stuff? Do they not have any basic tests??
 
@Rapptz since we've been talking about it quite a lot, here's my take on answering that question, thought I'd let you know.
 
5:56 AM
okay
 
user3010322
It's hopeless.
 
user3010322
Whoever said compiling DirectX 11 with MinGW was easy was a dirty fucking liar
 
user3010322
Right.
 
most people in GCC land use OpenGL
 
user3010322
It was Fanael.
 
user3010322
6:00 AM
Fuck Fanael, that goddamn troll.
 
user3010322
I've blown 12 hours trying to beat this into shape for the latest MinGW.
 
user3010322
I'd probably have better luck switching entirely to OpenGL.
 
4
A: How to compile a DirectX 11 app in MinGW

Mārtiņš MožeikoIt seems that here it is explained how to get DX headers from SDK work with MinGW: http://d.hatena.ne.jp/tbk/20110115/1295080728 Use Google Translate to translate page to english. Alternatively try using DirectX headers from mingw64 project from here: http://sourceforge.net/projects/mingw-w64/fi...

@ThePhD Probably.
 
 
3 hours later…
8:50 AM
@LightnessRacesinOrbit I hate you.
 

« first day (1331 days earlier)      last day (3618 days later) »