« first day (761 days earlier)      last day (4190 days later) » 

4:03 AM
@Xeo BestMatch<int, list<void*>> is an error (available for SFINAE), but BestMatch<int, list<void*, ellipsis>> is no_overload_found. And BestMatch<int, list<short[, ellipsis]>> is overload_found<0, short>. Convenient for tag dispatching and pattern matching -- and of course overload_found<I, T> exposes information via its type and value members, while no_overload_found doesn't expose anything, for SFINAE purposes again. How is that for an interface?
 
user1357851
4:38 AM
Oo someone took pity and upvoted me
 
user1357851
woot?
 
@Telkitty Gotta post more answers...
 
user1357851
Then people also have the oppotunity to downvote me.
 
@Telkitty Yes, but one up-vote moves your rep as much as 5 downvotes -- and if you post a really unpopular answer that gets downvoted heavily, deleting it removes the effect of the down-votes.
Oh, and I almost forgot: at least the first time you delete a down-voted answer, you also get a badge.
 
user1357851
...
 
user1357851
4:51 AM
how sweet, an e-badge I am almost crying :D
 
user1357851
more formed to fill in ...
 
@Telkitty That does make it a bit tougher to give good answers...
@ScottW Hello.
 
user1357851
I am like a magpie, always attracted to shinning things and that attraction lasts 5 mins.
 
@ScottW Sounds like a busy day.
 
user1357851
@JerryCoffin No quite what I was trying to say.
 
4:54 AM
@Telkitty Happens to all of us now and then.
 
user1357851
5:13 AM
I need to be productive :D
 
trying to Run First Assenbly program on XP
Any help ?
 
i dont get the picture =/
i hate the wait timer to tick an answer
if it answers the Q why have i got to wait to tick it >.>
 
6:01 AM
@Dave The idea is to give others a chance to provide alternative answers first -- perhaps one of them explains things better, is more insightful, etc.
 
they could allow high rep users to suggest the better answer at a later date. alot of questions probably have obselete answers
 
Actually they should allow high rep users to veto the chosen answer because sometimes the OP picks the wrong one.
 
well thats similiar to what i was saying
but there would need to be alternative answers
otherwise people's accept rates will drop
hmm interesting i can't seem to use std::vector <CreateButton> button(); as a private variable in my class
 
@Dave Right -- and few people will bother to write another answer to a question after an answer has already been accepted.
 
good point
 
6:10 AM
@Dave Try std::vector<CreateButton> button; instead. Right now, you're declaring a function named button that returns std::vector<CreateButton>.
 
how do i set its value in the cpp ? button(5); ?
 
@Dave You add buttons to the vector with push_back, like: whatever.push_back(a_button); and access buttons in the vector just like an array: whatever.button[2].draw().
 
hmm thats complicated matters
 
Oops -- didn't notice it was supposed to be private. Inside code for the class, it'll be just button[n], such as button[n] = some_button; or button[n].draw();
 
so i have to type out all 5 button[] from 1 to 5 without a datatype?
 
6:20 AM
@Dave Not sure what you're asking here.
 
cpp file has std::vector <CreateButton> button(5);
but the scope is only for the classname::classname constructor
to use those buttons in other functions of the same class i need to set it in the private header
 
@Dave Oh -- yes, if you define it inside the ctor, it'll only exist in the ctor. You probably want to define it in the class, outside any member functions: class whatever { std::vector<CreateButton> buttons; whatever() : buttons(5) {} ...};
 
ah i see
ok thanks
 
user1357851
6:58 AM
❀.•❤•.✿.•❤•❀.•❤•.✿.•❤• ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥ ♥_♥___♥_♥ ♥___♥_♥___♥ ♥___♥___♥ ♥ ._ ♥_ ...
 
hi love everybody
:)
i have a serious template programming challenge to the lounge, if anyone's interested
 
user1357851
It actually worked, I am amazed :)
 
user1357851
 
user1357851
 
user1357851
@Cheersandhth.-Alf testing various symbols
 
↑ I want the Templated class template to only be written once, like, being a template
 
user1357851







 
user1357851
How come I did not know they worked
 
¿pǝɔuǝıɹǝdxǝuı & ƃunoʎ ʎʇʇǝɹd ǝɹ,noʎ ǝsnɐɔǝq
 
user1357851
7:04 AM
...
 
user1357851
I pretend to be an 90 yo aggressive Chinese grandma hacker remember
 
user1357851
& I am not young
 
user1357851
this is sad, old newb
 
@Cheersandhth.-Alf Can you factor it out and then introduce an alias template<typename Foo> using Template = enclosing_namespace::Templated<Foo>; in the relevant specializations?
 
i want it to work also with visual c++
that's much of the point, COM code that works with two toolsets
 
7:07 AM
I'm not familiar with that compiler. Is the usual workaround template<typename Foo> struct Templated: enclosing_namespace::Template<Foo> {}; a problem?
 
it started very factored, a single def, but i could not find any way to let me specialize the constant definitions then :-(
@LucDanton i don't see how inheritance lets the derived class specialize its constant definitions?
oh well i guess i could always just write inline functions, but this is like, it should be simple, yet it ain't
 
You would specialize the base. It may be the case that the template parameters would differ though, so that the explicit specializations are meaningful.
(The template signature, if you will.)
 
not sure what you mean
the driving force here is that each constant definition still needs to be templated
so that it can be in a header file
with external linkage
 
What is the purpose of IdentifiersDef_?
Okay I think I've got it.
 
it provides association to the class specified by the template parameter
so that the constants belong to that class
it's like a traits class
 
7:26 AM
@Cheersandhth.-Alf Would this work?
Ah, I need to fix that to be header only.
Switch template<typename T> struct Templated { /* ... */ }; to template<typename T, typename Dummy = void> struct Templated { /* as before */ }; and change the different explicit specializations to be partial, e.g. template<typename Dummy> struct Templated<ExampleClass, Dummy>.
(I changed some of the stuff to make it compile here, it's obviously not relevant.)
 
user1357851
☇ sebe u r up I am amazed
 
@LucDanton yes, that's the problem...
 
See fix!
Time for groceries.
 
thanks
but i get compilation errors with both msvc and g++
i tried this fix earlier...
 
THE VS2012 MENU BAR SAYS HI
 
7:34 AM
@Cicada just google the registry hack fix
there is also a theme thing to make it less of an eyesore
though still ungood
↑ not compile
 
@Cicada good morning!
 
egg and BACON
over pancakes with maple syrup, of course
 
user1357851
HASH brown
 
user1357851
chocolate milk shake
 
user1357851
thought you have 2 interviews today
 
user1357851
7:42 AM
what are you doing at 2am
 
user1357851
from my experience the best preparation is sleep
 
user1357851
really is
 
user1357851
1 glass of wine
 
user1357851
no more
 
user1357851
Oo :(
 
7:43 AM
@ScottW From my experience, I can never use the time productively
 
user1357851
@Cicada after you joined this chat :D
 
@Cheersandhth.-Alf Can't explicitly, partially specialize the primary template. Need to introduce the partial specialization Templated< ExampleInterface, D >, then present definitions for its members. As a consequence there is a redundancy.
Also groceries.
 
user1357851
night snack
 
@ScottW huh. why would you do that :)
:)
Oct 27 at 17:18, by WTP'--
See also *
2
^ that was so ignored. Good find @daknok
 
user1357851
@ScottW !
 
user1357851
7:54 AM
you want to travel to netherland because you are hungry?
 
user1357851
So cute
 
user1357851
But I hope it is not your cat
 
user1357851
because otherwise I am going to report you for animal cruelty
 
8:24 AM
@TonyTheLion steeling that. :-)
 
@Cheersandhth.-Alf It hit me on the way to buying groceries but if your compiler supports that you can check that Uuid is a literal type and if so, you can use static constexpr foo member = /* initializer goes here */; in the partial specializations. Except that you still need a definition in case of odr-use!
 
@LucDanton thanks, again! but i can't get it to work...
@Telkitty what do you think is cruel in that picture?
 
damn cleaners, why do they insist on just moving stuff around my desk with out actually cleaning?
@Telkitty ¬_¬ for what? letting a kitten do what kittens do?
Great, in work not ten minutes, and all ready my eyes hurt
and did I mention that outlook sucks ass
I know thunderbird can happily take over email stuff, but I'm not so sure about the calendar functionality
 
8:49 AM
@ScottW and Carthage must burn!
 
@thecoshman I've found thunderbird's lightning plugin to be surprisingly useful for calendar functionality
 
@jalf does it compare to outlooks? I need to be able to get the email invites and accept them. Also need to be able to send invites for meetings to a list of emails pulled from exchange address book
also need to be able to see peoples schedules when scheduling meetings
 
@thecoshman as far as I know, yes. I don't think I've tried sending out invites, but it handles receiving invites over email fine
 
@jalf if I do try it out, would I be able to run the two side by side for a sort while?
 
but tbh my calendar usage is pretty basic, I just want to be able to see if there's something I should be doing today, basically. ;) so there might be some requirement it doesn't fulfill
@thecoshman I don't know, but I would expect so
It would require both the server and the client to be pretty broken for that to not work, wouldn't it?
both outlook and lightning are just clients pulling calendar data from the server, after all
 
8:54 AM
@jalf that's more or less all I do, as long as it can get scheduled events.
@jalf yeah, but MS are a pain for using 'open standards' in a way that is not quite open
 
oh, also I'm not using it against an Exchange server, so I have no clue how well that works. But it seems surprisingly polished overall, so might be worth a try
 
I know that email wise it's pretty much fine. Calendar wise it seems outlook does some funky stuff
I'll see how it goes :S
 
> This add-on is not compatible with Thunderbird 15 or higher
> Now the version 3 is working perfectly on Thunderbird 16
¬_¬ get your story straight guys
thanks :D
oh boy, importing mailbox could take some time :P
@R.MartinhoFernandes is that a random search result, or actual recommendation?
 
@thecoshman Search result. I don't use Exchange.
 
9:10 AM
Why would you need to do static_cast< T* >( 0 ) ?
cast 0 to T*? Seems odd
 
Because otherwise it may be treated as the int it is? (for example, in overload resolution)
 
user1357851
0 initialization for all types?
 
user1357851
literally
 
ah right
ok
 
9:25 AM
lol e32
gnuc bar.cpp -D CPPX_COMPILERSPECIFIC_NORETURN= -lole32
ok overly silly
 
hmm.... seems thunderbird is not as exchange compatible as I first thought
fucking hell, looks like I am stuck with shitty outlook (╯°□°)╯︵ ┻━┻
 
Can someone confirm this?
 
yes
the last one is ub
K is uninitialized (indeterminate)
 
user1804599
Hello.
 
user1804599
9:36 AM
What's up?
 
@Cheersandhth.-Alf ok thanks :)
 
9:47 AM
@TonyTheLion assert(this);
 
user1804599
this puns are so lame.
 
@Aardvark You just can't handle this
 
if you.tolerate(this) then children.next();
 
user1804599
CoffeeScript uses sigils instead of this.. The only thing I dislike about it.
 
@Aardvark What's CoffeeScript like? I've considered learning it
Why would you use that over plain ol' node.js?
 
9:51 AM
@TonyTheLion apart from if {} zero inits, looks legit to me :D
 
user1804599
@Neil it has a much nicer syntax than JavaScript, it has list comprehensions, it has string interpolation, it has array expanding to function arguments (e.g. foo(my_array...)), it has variadic functions that don't suck, it has syntactic sugar for self = this; constructs, it has less curly braces. :P
 
user1804599
 
@Aardvark *Gasp* Tab-based code?
 
user1804599
@Neil you mean significant indentation? I like it, like Python. :P
 
I haven't programmed in a tab-based code since.. well ever
 
9:55 AM
Do you guys have trouble adding something to system when it already works? I mean do you have some inner reluctance to change something, just because of fear it might gone wrong? Not because you don't understand something, in system, but because you know that despite all your knowledge and understanding you will spend some time on finding bugs that caused this and this is gonna be real painful.
 
I don't think VB counts
 
user1804599
I don't use tabs, though.
 
user1804599
Tabs are for morons.
 
I swear I put more effort into building then I do into the actual changes I make to the code
 
@Aardvark Well spacing, same same I think spacing is lame impractical though
 
9:56 AM
@Ivan0x32 Of course. The only cure I know of is to (1) have decent test coverage, and (2) make sure you understand the code you're changing.
 
user1804599
You will indent anyway.
 
user1804599
Even with { and }.
 
@jalf neither of which you can fully attain
 
@Aardvark but I will also *re*indent, and I'm iffy about that changing the semantics of my code
 
@Aardvark I believe he is referring to langues where white space holds meaning
 
9:58 AM
@Neil People do it all the time. I don't think it is impractical.
 
@R.MartinhoFernandes Impractical unless you have an editor that is intelligent enough to remove 4 spaces when you hit backspace once
Or automatically indents
 
user1804599
@Neil and the decent ones do.
 
user1804599
@Neil ^ idem.
 
Otherwise it's space-space-space-space, backspace-backspace-backspace-backspace
 
9:59 AM
Are you using notepad?
 
@R.MartinhoFernandes No, I use tabs
 
user1804599
lololololol tabs
 
user1357851
who uses notepad
 
user1357851
notepad++ <--
 

« first day (761 days earlier)      last day (4190 days later) »