« first day (872 days earlier)      last day (4302 days later) » 

18:00
Like MSVCP110_CTP.dll
Fucking rude popup day. I can see four machines from here. Thre have 'Java Update Available', one has Chrome 'fix-not-for-the-crashes', the other has some Adobe shit.
@ThePhD probably!
@ThePhD I think they did not change the library for the CTP, so maybe not.
DISCLAIMER: I have no idea what I am talking about.
@thecoshman Sideways across two disabled bays. The weather was apalling, could not see through the driving snow, just stopped off the road where there was space and ran into cafe for hot coffee. The parking enforcement officer was not impressed.
@MartinJames If it had been me, I may have got away with it, I have a disabled badge.
18:03
Well.
Somebody from the other side of hte world says they need MSVCP110.dll to run my application.
Ha, I think I found it: "ohm sign" is on ISO-2022 for Korean.
This is because I'm using /MD to link and going release mode
@TonyTheLion NO - I know this asshole. He would have still done you for parking outside the bay lines.
I give them the VC++ 2012 redist to install, but it doesn't solve anything
@MartinJames assholes will be dickweeds
18:05
@R.MartinhoFernandes You are, unfortunately, all too correct.
so what is so interesting about the Omega sign that you guys have been talking about it for the last hour?
5
Q: Visual C++ executable and missing MSVCR100d.dll

eliI know this has been asked in other places and answered, but I'm having issues with MS Visual Studio 2010. I've developed a C++ executable but if I run the Release version on a machine that doesn't have the VC++ runtime library (ie, msvcr100d.dll), I get the "program cannot start because msvcr100...

@TonyTheLion "Hmm, maybe it's like this... no, like... again... oh, like that- no... like this... ok, I finally got it! Let's try this shit 18000+ compiler errors"?
@R.MartinhoFernandes that's exactly how it goes
@ThePhD oh wait, I recognize that problem. You linked release code with a debug library or vice versa on accident. Your build settings are wrong.
18:06
@MooingDuck Wait, what?
@TonyTheLion If you have to ask, probably nothing (the interesting bit is that is appears twice in Unicode; you can just read the conversation if you find that interesting; probably not).
I'm specifically linking /MD (not /MDd)
@ThePhD do you have any other libraries?
I even built zlibstatic myself to make sure it's running /MD and /MDd
@MartinJames should have offered him one
18:07
Well, actually.
I just built it. I dind't check...
@R.MartinhoFernandes oh I see.
@ThePhD something in your program didn't.
@R.MartinhoFernandes I don't really find that interesting, what I do find interesting though is the kind of discussions that go on here at times, about seemingly the most trivial little details. (Witness tabs vs spaces argument)
Maybe it was FBX....
@ThePhD ran into this at work when we linked to the debug version of a 3rd party library on accident in our release builds.
18:08
WELP
TIME TO CHECK.
@thecoshman I would have done if Anne was with me - she has warfarin with her.
and by "we", I of course mean "I".
god damn these shadow samplers are complicated
I am reading and reading and reading and shit
18:10
So my fellow C++ masters, what is virtual inheritance and where do you use it?
And which kid wrote the topic?
@TonyTheLion pure gold
@MooingDuck : Hiya Moo! :D How are you?
@MartinJames is that some sort of secret ninja club?
Virtual inheritance is like inheritance, only virtual
Xeo
Xeo
@TonyTheLion Blizzard probably got a kick out of that aswell.
18:11
@TonyTheLion The devil is always in the details.
@R.MartinhoFernandes Even more so in this room.
Just watched TPB AFK
Good documentary. Anyone watched it?
@GamesBrainiac I watched that a few weeks ago.
zlib is okay.
not too bad
18:11
Gonna try FBX
The Pirate Bay Away From Keyboard?
@thecoshman Rat poison - recommended for DVT and parking officers.
@R.MartinhoFernandes yes
@TonyTheLion I kinda felt sad. How the heck are they gonna pay $6.6 M?
@R.MartinhoFernandes Yea.
@GamesBrainiac I didn't feel sad at all, but it's an interesting perspective.
18:12
@TonyTheLion Oh. So, reality just ruined my joke? WTF.
user142019
> reinterpret_cast from 'int (std::function<int (int, double)>::*)(int, double) const' to 'const unsigned char *' is not allowed
user142019
Dafuq, why not?
@R.MartinhoFernandes yes :)
FBX is md and mdd too
@ThePhD Not on Windows, it's not, IME.
18:13
@MartinJames I built it, warningless and errorless, from scratch.
@Zoidberg why would you want to do that?
I think it's alright.
@Zoidberg TF you trying to do.
user142019
I'm trying to implement bound_function.
Well, the case with Nicol is that I asked, he answered, and now I don't even understand my question
18:13
@Zoidberg omg why yes?
user142019
I need to store the address of std::function::operator() in a buffer.
@Zoidberg Pointers to member functions are not pointers.
@Zoidberg WHAT so wrong
@ThePhD Be careful where you put it.
@Zoidberg use pointer-to-pointer-to-member and memcpy.
18:14
@Abyx dude
the fuck?
So yeah, what the ASCII bird said.
user142019
@R.MartinhoFernandes oh. :L
what the hell is going on
memcpy
@Zoidberg You're trying to cast a function pointer to const unsigned char *?
18:14
address of std::function::operator() in a buffer.
@Abyx srsly?
@BartekBanachewicz It is the answer.
@TonyTheLion yes.
@TonyTheLion Yes.
shit hits the fan
18:15
@R.MartinhoFernandes how?
Kids, this is hardcore.
it sounds so fucking wrong
@BartekBanachewicz That sounds like a bad idea...
it sounds really awful
@EtiennedeMartel Nope, a pointer to member function, which is a completely different entity (casting function pointers to data pointers works most of the time nowadays).
18:15
@R.MartinhoFernandes Even then it feels weird.
pointer-to-member is actually a structure, not a pointer.
Forgive my massive ingorance, but surely C++ has a 'member function' type?
WTF am I reading?
@MooingDuck The thing is, it's not asking for MSVCP___d___110.dll
@MartinJames pointer-to-member
18:16
It's just asking for MSVCP110.dll; I don't think any library is looking for the debug version.
why would you want to cast any function pointer to data?
@TonyTheLion btw I hope you don't mind I stole it for Twitter purposes
@TonyTheLion Often for storage in a void*.
@BartekBanachewicz I don't mind, the Internet is full of reposts anyways
pointer-to-member is just an offset
18:17
@BartekBanachewicz No.
@BartekBanachewicz nope.
@ThePhD oops. then the redistributable thingy should work...
@BartekBanachewicz virtual base classes.
@BartekBanachewicz it's a stricture with ~1-4 fields
> The type of a pointer that can designate a function is called a function pointer type.
@TonyTheLion Presumably a 'this' pointer and function pointer or vtable index?
hmmm interesting
user142019
How would I get a pointer to the implementation of a member function?
@MartinJames See link above. It can be just an integer offset, or can it be a ginormous mess.
user142019
18:19
Hmm wait.
@Zoidberg What?
> ... text referring to “pointers” does not apply to pointers to members.
heheh, from Standard
(removed)
user142019
@R.MartinhoFernandes Well, a member function must be implemented and the machine code must be somewhere in the binary.
@R.MartinhoFernandes Oh - I see. Yeah - I can understand how that could happen :(
18:20
@Zoidberg pointer to code? why do you need it?
user142019
Because I want to call it?
@Zoidberg A pointer to what?
@BartekBanachewicz It acts roughly like an offset, but can actually be fairly complex when things like multiple inheritance get involved.
@Zoidberg You allocate a S std::function<S>::* somewhere you can fetch it from later, and store a pointer to that (S std::function<S>::**, I think), alongside with a pointer to *this.
Maybe d3dcompiler_46 is screwing me up.
18:20
@Zoidberg you can't call it without knowing a calling convention
@Abyx He doesn't know what object/method to call till runtime.
user142019
@Abyx thiscall doh.
&T::member_fn
I don't know what are you doing
Then to call you recover the ptmf and the this pointer from that location, and do (*this_pointer).*ptmf*.
user142019
I want to store the address of std::function<T>::operator() in a buffer.
user142019
18:22
@R.MartinhoFernandes ahh I see.
@Zoidberg Why what for
user142019
Thunk.
@Zoidberg Kind of a massively useless one, but well.
@Zoidberg does T* f = instance.operator(); work?
@MooingDuck No.
18:22
@R.MartinhoFernandes Is std::function really needed for this, if you need to use .* explicitly anyway
I'm guessing event subscription list?
@R.MartinhoFernandes no wait, of course not
@CatPlusPlus No, it isn't. But it helps.
@Zoidberg But seriously what the fuck are you doing
This is not normal
Hmm.. not sure that the suckage level has been nailed down yet.
18:23
This is probably not needed
@CatPlusPlus A thunk? Trampoline?
@Zoidberg meh, you just need a void(*)(void*), void* pair
@Zoidberg Right about now, you really want to read chapter 5 of Modern C++ Design.
@CatPlusPlus A way to pass stateful callbacks to badly designed APIs.
user142019
And C APIs.
18:24
Thunk is usually generated code, std::function doesn't generate code
user142019
That's what I am doing. And the generated code must forward call to std::function::operator().
@CatPlusPlus But it stores what the generated thunk will call.
Ok now I see that
Ell
Ell
Oh gawd, pointer to pointer to member & memcpy? sounds awful :O
Are you trying to librarise thunks or what?
18:26
@R.MartinhoFernandes ..for they are legion..
@CatPlusPlus Yes, that's exactly what he is trying :|
Don't worry, it'll never be finished anyway
5
Figures, I attached a debugger to Chrome and left it running for hours and it didn't crash
@Zoidberg Btw, it is somewhat important to use .* and not ->* because the latter is overloadable.
@CatPlusPlus keep it attached.
also you can file it as a workaround
@Ell Meh - when you have to shovel shit, you end up with a shitty shovel.
@CatPlusPlus OK, Chrome problem solved :)
18:29
@R.MartinhoFernandes On an object pointer type?
Soddin' captchas. When finalizing my plans to invade Poland, I failed three times to get past the stupid Ryanair check.
> Welcome to the Let's Play of Aurora, a space 4x written in VB6 by one man as his private project. It has been called the Dwarf Fortress of space 4x games, due to its extensive depth and its arcane interface. Example of both will be discussed below.
 class unspecified_bool_type {
    bool v;
 public:
    unspecified_bool_type(bool value) :v(value){}
    operator bool() {return v;}
}; //why not this instead of member function pointers?
YEEEEEEEEEEEEEEEAH
THAT SHIT WORKS FOR OTHER PEOPPPPLE
18:33
@ThePhD what'd you fix?
Uh. They were all installing the vc_redist 2010 and 2012 for x64.
They needed to isntall the one for x86. ._.
Xeo
Xeo
@MooingDuck You don't get two user-defined conversions in a UCS
@Xeo oh right
@Zoidberg Easier to inject a pointer to std::function, then call a predefined function with that extra pointer as argument, which then calls that std::function object.
user142019
Yes, I'm doing that now. :P
18:36
boost::optional<std::string> apple(0); //compiles with no std::string active :(
Xeo
Xeo
Sec
1
Q: Unexpected Template deduction

aCuriatemplate< typename T > void addVarCB(const std::string &name, TwSetVarCallback setCallback, TwGetVarCallback getCallback, void * clientData, const std::string &def = "" ); template< class C, typename T > void addVarCB(const std::string &name, ...

> Intel Named a 2013 World's Most Ethical Company
Good for you?
Ell
Ell
Heh. I find it extremely funny this site has a CAPTCHA for registration xD protypers.com/register
18:38
Last time I've checked 2013 wasn't over yet
@Xeo Why is there no basic_string(nullptr_t) overload to help withthat?
user142019
Haha segfault.
Xeo
Xeo
@DeadMG Fuck if I know.
AMD is so bad that they can be moral and beat them
18:38
@Xeo I seem to have simplified too far then :(
@Zoidberg I would never have guessed, (but full marks for trying that gunge:).
Xeo
Xeo
@LucDanton Interesting
Is it?
That would be boost::optional<std::string> apple = 0; then. Construction vs conversion.
Xeo
Xeo
18:42
It's not even a string in his SSCCE.
lawl
Anyway, my optional is convertible from iff the value type is. Same for constructible from one argument.
So apparently Chrome crashes because of int 3
o_O
Xeo
Xeo
Wait, debug break?
So it technically doesn't crash but breaks but after continuing it terminates anyway and claims it crashed
There's a lot of int 3 in disassembly at that site
18:47
@CatPlusPlus Hmm.. that sounds eerily familiar.
I'm thinking it's padding gone wrong
@BartekBanachewicz When I was in college I got an "A" in my ethics class (bought the test answers from a frat).
@Xeo Yeah - that's why it's familiar :)
Maybe someone thought 0xCC is a good pad byte
Xeo
Xeo
@MooingDuck I'm honestly not totally sure what's going on there. The docs atleast say that boost::optional isn't constructible from a pointer, so passing 0 shouldn't do anything.
18:50
Anyway fuck this shit I'm not going to suffer through this
Let's go back to Firefox
@Xeo Poorly constrained converting constructor template?
@Xeo boost::none_t is an unspecified bool type, which is implicitly constructable from a null pointer constant of zero, and a better match than the user declared constructor.
@Xeo Surely, though, boost::optional<T> is constructible from a T.
Xeo
Xeo
@MooingDuck Oh, right, I forgot they did something stupid like typedef int dummy::* none_t;
@Xeo exactly
18:52
@CatPlusPlus IIRC, VC++ can do that (in the hopes that you'll quickly catch any jumps to invalid addresses).
I caught it allright
Xeo
Xeo
@DeadMG Yes, but that would require two user-defined conversions, one to myint and then to boost::optional.
But seriously, who the fuck thought that some kind of pointer type would make a good none_t?!
@Zoidberg, actually in VC++ you can write static R __thiscall f() {} and then &f
Ugh importing everything into Firefox
@Xeo Someone that wants o == NULL be consistent with e.g. o = NULL, presumably.
Xeo
Xeo
18:55
@LucDanton Ugh...
@Zoidberg here is a working POC for VC++ - pastebin.com/G0vWt5NA
@Xeo In the case of boost::optional<X> = y; then yes.
user142019
Cool.
@DeadMG boost::optional<constructable_from_int> = 0;
@Xeo Yeah... it's really something that nullptr and nullptr_t are for.

« first day (872 days earlier)      last day (4302 days later) »