Ooh, I see! I hadn't picked up on that. Fantastic 😁
Ooh, I see! I hadn't picked up on that. Fantastic 😁
Does this tool actually calculate regex differences? It seems more like a playground to look for the differences oneself.
In any case, nice work! I've been looking to understand more of the mechanics of regex-to-dfa translation myself.
True, though here the hack is incredibly unintuitive for the programmer. You have to declare the constructor, but then leave it unimplemented. Not to mention the compiler error that should catch this now only occurs at link time, and linking errors are even more cryptic to grok.
When they made RVO mandatory, they should've removed the constructor declaration requirement as well, instead of a half-ass solution like this.
As a final nail in the coffin, std::is_move_constructible<> suddenly returns true for this non-move-constructible type 😉
Well, it's really interesting that this is a hack that works, but you're really fighting the compiler here.
This is making me all the happier I switched to Rust 😂
I would argue it doesn't even make anyone's life better, except google and advertiders'
I actually like this, at least in some way it could lower the barrier for actually explaining what a function does. Though I don't see this working in an office environment