« first day (1453 days earlier)      last day (3496 days later) » 

7:00 PM
the place is le swanky
maybe 30 minutes from work by bike or more by bus/walking
 
aaaaaaaaaaaaaaaa drupal.org/project/uuid this exists why didnt i know about this last time i had to do this aaaaaaaaaaaaaaaaaa
 
because lollerskates
 
@Puppy I live 15 minutes by bike from work, but work is moving in December to more or less across the street.
 
user1804599
Lol I just realised I also violate rule of whatever the number is now.
 
zero.
this is likely highly related to having memory leaks.
 
user1804599
7:03 PM
Time to not be a lazy ass and use unique ptr.
 
@R.MartinhoFernandes I'm gonna have to pay like 2k to move in.
 
I'll miss the mandatory cycling, though.
 
half of my route is on a proper distinct cycle path and most of the rest is gonna have to be more or less main roads.
 
evening
 
@Puppy How much do you pay
 
7:07 PM
it seems there are new cppcon videos
 
@CatPlusPlus £600/mo
 
@rightføld huh. Time to be a lazy as and use unique_ptr
 
including the presentation by that SO game dev guy
 
user1804599
Oh how fun std::unique_ptr<void, …>.
 
lol who does that
except when interoperating with a C API I guess
 
user1804599
7:09 PM
Yes C API.
 
Ell
I don't understand why this can't be inferred :S coliru.stacked-crooked.com/a/bea8d17d7b6881de
I know the solution is above, but I don't understand why they can't be inferred
 
user1804599
You need typename =.
 
user1804599
And then you need to not do it that way because it will still fail, but at least for another reason.
 
user1804599
Hey @StackedCrooked just an idea: when clicking an error message on Coliru it selects the relevant line in the code right? Make it so that it only does that when no text was selected in the output box.
 
@Ell It's expecting a non-type argument as the third argument
As rightfold wrote, you probably meant to have an = sign after typename
 
user1804599
7:18 PM
@AndyProwl Between the two typenames. :P
 
typename = typename?
 
user1804599
Maybe I can port my generic Markov chain to C++.
 
user1804599
And FSM.
 
@AndyProwl typename = typename std::enable_if<...>::type
 
oh, right
 
Ell
7:21 PM
I think I'll just separate this into a class
 
"makes tmp to handle deleted data" and "Does anybody know what is the proper treatment" are exactly about UB, and actually have nothing to do with multi_index. You'd have had precisely the same problem (Undefined Behaviour) with a QMap<Qstring, std::string> where you used auto tmp = map.value(QString("keyname")).c_str()sehe 12 secs ago
 
Ell
Subroutine and Function or something similar
meh now I want a unit type so I don't have to write things twice, once for returning another for not returning
 
struct unit {}; there you go
 
user1804599
@Sofffia suck my dick
 
user1804599
@Ell std::tuple<>!
 
Ell
7:29 PM
I'll leave it as that for now :p
 
@rightføld I thought you liked it the other way around.
 
user1804599
Not with you.
 
:3
^ that's me like this
 
Ell
@Sofffia you harlot
 
Woah. Never heard harlot before.
It shall be the new "bitch".
harlots
 
Ell
7:32 PM
I'd say it's more apt for "whore"
 
Noun: harlot (plural harlots)
  1. (derogatory) a female prostitute
Verb: harlot (third-person singular simple present harlots, present participle harloting or harlotting, simple past and past participle harloted or harlotted)
  1. To play the harlot; to practice lewdness.
Adjective: harlot (comparative more harlot, superlative most harlot)
  1. (obsolete) wanton; lewd; low; base
  2. William Shakespeare, The Comedy of Errors: Act 5, scene 1, 204–205
  3. This day, great duke, she shut the doors upon me, / While she with harlots feasted in my house....
 
That's an improvement.
#goodjobtwitter
 
Ell
okay I fixed my method thing. it now returns values
but I have a new problem... I still can't store the lambda in a std::function :S
I changed it to a forwarding reference and it compiled
 
Ell
I don't really understand forwarding
Well. I don't understand why I need std::forward if template<class T> void foo(T&& my_t){...}; already has my_t as a forwarding reference
 
7:36 PM
my_t is now an lvalue
So passing it to something will actually pass T&
Even if you originally passed T&&
Or something
I haven't been C++ing in a while.
 
I think you have a "not" too many there.
 
Yes, thanks, I meant "now".
 
I visited pandoc page and it reminded me that DocBook exists
 
Is that good or bad?
 
user1804599
Probably good.
 
@StackedCrooked where's the yield?
 
@StackedCrooked boost.coroutine is mature enough to be used with ASIO
 
The asymmetric coroutines work with push & pull.
@Abyx That's cool.
 
@Ell See here.
 
user1804599
Macros are great.
 
7:47 PM
T&& + & = ?
 
Yeah.
 
I never remember this.
T&?
That would make sense.
 
@Sofffia yes
> lvalue references are infectious
 
So the idea is that my_t is a lvalue of type T&&, therefore it's a T&?
 
Yesterday I check out the pdf slides for Alexandrescu's cppcon talk (which is not yet available on youtube). I thought the refcount tricks were really clever.
 
user1804599
7:49 PM
 
user1804599
Let's ship it!
 
Embryo tries to join SO:
http://meta.stackoverflow.com/questions/273092/why-cant-users-below-13-show-their-age-in-its-profile-page
 
@rightføld You could also use new all over the place without delete and just hope that the program ends normally before you run out of memory.
 
@Ell And this is why I don’t like the name. Playing devil’s advocate though, I suppose you could justify it as ‘those references you’ll forward to and fro’, not ‘references that forward’.
 
user1804599
@FredOverflow It's a library. :P
 
7:51 PM
@Sofffia lvalue of type T&& doesn't make any sense
 
@FredOverflow That would work for many applications.
 
If you pass an lvalue of type X, then T is deduced to be X&, so T&& is X& && which is collapsed into X&.
 
@FredOverflow As I've said before, it's a viable design on Windows where programs only have to run until the next patch-Tuesday.
 
@StackedCrooked I think the D compiler works that way. Very efficient.
 
Just keep all allocs in a global list. So you officially didn't leak since memory is "still reachable".
 
7:52 PM
lol
 
@FredOverflow I see
 
user1804599
@StackedCrooked You leak it.
 
user1804599
Just before the program terminates, the list is destroyed. At that moment you have leaks.
 
7:53 PM
@rightføld new it
 
user1804599
That should work.
 
new is so good
 
@StackedCrooked Read that as "knew", but that was probably the joke I didn't get.
Wasn't it?
 
@FredOverflow lvalue of type T&& does make sense though :P For instance given T&& x = ...;, the expression x is an lvalue of type T&&
 
7:54 PM
What's better than new? new std::unique_ptr<>()
 
I saw int* p = malloc(100, sizeof(int)); today.
 
user1804599
lol
 
lol
That compiles?
 
user1804599
No.
 
I didn't knew
 
7:54 PM
@Mysticial It did on VS 2005. Comma operator.
 
user1804599
malloc takes a single parameter.
 
@FredOverflow function overloading in C?
 
user1804599
What moronic compiler would parse that as comma operator?
 
probably namespaced, or macro
#define malloc(n, s) malloc(n * s)
 
user1804599
lol
 
7:55 PM
@rightføld VS 2005, apperently? dunno
 
Should'a been calloc.
 
@MartinJames yes
 
@AndyProwl It’s an lvalue of type T (or T& if you will) that is the name of a variable of type T&&.
 
user1804599
enum class byte_order {
    little_endian,
    big_endian,
    network = big_endian,
    native = __LITTLE_ENDIAN__ ? little_endian : big_endian,
};
 
user1804599
Enum aliases are great!
 
7:56 PM
The variable isn’t, cannot be, the lvalue.
 
@AndyProwl oohhh...
 
user1804599
I was surprised you could do that the first time I tried it.
 
@LucDanton ah, right. Expressions don't have reference type
 
lol
 
7:57 PM
@AndyProwl What? Sure they do. For example, an expression of type X&& is an xvalue.
 
@AndyProwl Missing the point: if they had, it would be T&, not T&&.
 
I always forget that T&& can be an lvalue reference. Even if I just explained to somebody else five minutes ago :)
 
@FredOverflow According to 5/5 (I think), if an expression has reference type, the reference-ness is immediately lost
@LucDanton I see
Btw @LucDanton mind if I ask a question about concepts?
 
Short or long? I was planning on a shower.
 
short
it's about this small example here - the question is in the text
 
8:01 PM
> Greetings Tsar,

The baguette-eating nation salutes you.
@LucDanton Short or long?
 
Long.
 
@Sofffia what is it?
@R.MartinhoFernandes :D
 
btw watching this cppcon talk about Boost.Hana, looks interesting
 
showers have implicit conversion from short to long
7
@AndyProwl that's waay too advanced for my brain at this hour
 
@AndyProwl I can’t say either option is desirable.
 
8:06 PM
I see
 
One is unintuitive, the other too verbose.
 
@rightføld except they're not. it's just explicitly initialized enum members
 
@LucDanton Indeed. Thanks for taking a look
 
user1804599
@sehe they are equal for all purposes.
 
user1804599
Except they reset the counter.
 
8:08 PM
except for common terminology. No one knows what you're on about when you call it enum aliases.
 
hey guys
I am going to borrow money from my dog.
6
about this, I do not shit you.
 
@rightføld So, you can't even claim "they are the same", since one of the two things doesn't exist.
 
Daisy the rich bitch
 
user1804599
@sehe wat
 
@rightføld Did I miss a memo about enum aliases being something I didn't see in your sample?
 
user1804599
8:11 PM
Oh. With "equal" I meant that big_endian and network are equal.
 
@StackedCrooked I think @EvgenyPanasyuk created much more about that in a github project of this
 
@AndyProwl The arguments are lvalues, so it definitely implies copyable. You should instead specify bar's signature and then requirements on T- e.g. Bar(X, X).
then the user can compute for themselves whether or not Bar is a valid call.
 
@Puppy Daisy, Daisy, give me your wallet do..
 
indeed
 
@Puppy I also thought about allowing users to specify the syntax explicitly
But I think the situation is not specific to concepts being used virtually, and there is no such notation in Concepts TS
 
8:14 PM
bad and wrong.
you're right about that.
 
Oh, damn, I thought alignof was new C++11 keyword.
 
@MartinJames dat comment by a SO user who's 100 y/o o.O
 
it is.
 
Oh, sorry, I misread the error.
 
@Puppy you mean specifying the syntax explicitly?
 
8:15 PM
what you should not do is specify the requirements on the signature of bar by expression including it.
 
alignof can't be used on an expression
 
user1804599
@StackedCrooked you suck.
 
warning: 'alignof' applied to an expression is a GNU extension [-Wgnu-alignof-expression]
        std::aligned_storage<sizeof(f), alignof(f)> storage;
 
you should simply specify the signature of bar.
 
That's kinda sucky as well.
 
user1804599
8:15 PM
@StackedCrooked dat inconsistency with sizeof.
 
@rightføld That didn't make sense with the rest of your claim ("Except they reset the counter."). So I concluded this could not be what you meant.
 
user1804599
Verb: except (third-person singular simple present excepts, present participle excepting, simple past and past participle excepted)
  1. (transitive) To exclude; to specify as being an exception.
  2. (intransitive) To take exception, to object (to or against).
  3. 1621, Robert Burton, The Anatomy of Melancholy, vol.1, New York Review Books 2001, p.312:
  4. 1658, Sir Thomas Browne, Urne-Burial, Penguin 2005, page 23:
  5. 1749, Henry Fielding, Tom Jones, Folio Society 1973, page 96:
Conjunction: except
  1. With the exception (that); used to introduce a clause, phrase or adverb forming an exception or qualification to something previously stated.
  2. (archaic) Unless; used to introduce a hypothetical case in which an exception may exist.
  3. 1621, Robert Burton, The Anatomy of Melancholy, New York 2001, page 106:
 
@Puppy I thought of allowing a signature-requirement as a new type of requirement: { void bar(X, X); }
 
@rightføld GNU is doing the right thing. They should hide the warning and pretend it's standard.
 
@rightføld Is there a point?
 
user1804599
8:17 PM
@StackedCrooked disable the warning
 
user1804599
Or make sure you use sizeof(decltype(…)) everywhere!
 
And when X appears by-value in the signature, overloads for X&& and X& are automatically generated
 
@sehe Yeah - impressive:)
 
@AndyProwl Nooo.
implementation detail.
 
I mean
 
8:19 PM
void bar(X, X); -> interface job done.
although presumably you'd also need to specify X as movable/copyable to actually use it.
but that's another matter
 
the vtable would contain two entries, one taking X&&, one taking X&
otherwise I'd introduce an unnecessary move/copy
 
implementation details.
 
(two entries for each argument, so four in total)
 
and let me assure you that in this particular case, the ABI specifies that X is taken by pointer anyway.
at least Itanium does.
MSVC ABI does something I didn't quite understand
so forget about that.
 
8:20 PM
anyway I'm off
good night, inferior beings
 
bye, thanks for helping
 
no problem
 
Me too, the London Pride beckons..
 
@sehe Your avatar now appears on the top bar of Twitter.
That's new.
I like it.
And by "new" I mean < 7 days old.
 
user1804599
@sehe I think I will subclass std::logic_error.
 
user1804599
8:30 PM
As bad_fd.
 
Nice responsive design is hard.
 
Wut Google doesn't work. Gives me internal server error.
Now it works again.
 
@Puppy You should learn to be nicer when you talk to yourself in public!
 
@StackedCrooked That's not too interesting since it's blocking :P
 
8:45 PM
That's like just your opinion man.
Returning a future would only postpone the blocking.
:P
 
...
 
user1804599
> Swamp Police Station
 
user1804599
 
What a fucking asshole Deduplicator is.
 
Ell
why?
 
8:55 PM
Because he basically just copied my answer. At least the lambda and list-initialization part. See here.
Well, okay, not quite - his lambda has an unnecessary parameter-declaration-clause :D
 
oh no
 
sound the alarm
 
@R.MartinhoFernandes Or maybe it was long long.
 
First time this happens to me on SO
So I'm gonna be all angry the first couple of times and then just don't give a shit later
 
user1804599
I should play with Lego more.
 
user1804599
8:57 PM
It's fun.
 
> Greetings, baguette-eaters.
 
Sorry, Etienne is not here. Would you like to leave a message?
 
Ell
I can't solve differential equations any more ahh
I have lots of work to do
 

« first day (1453 days earlier)      last day (3496 days later) »