the good thing about having a few computers/laptops ... or pi is that if one is busy updating/running some other programs, you can always use another one to waste your time ...
also current drone uses arduino inside, looks like I could potentially program it one day
Spent an hour debugging a crash in NVIDIA's internal performance primitive's library . Their dll was throwing an exception on a specific function, but not other functions. Restarted the computer and the problem went away. FML.
I can’t reverse exec a test assertion failure because the assertion printing facilities use AVX instructions for blazing speed and GDB does not support that
it’s not even that, it’s regular std::string stuff
I guess I’m trying rr then
> You have a Ryzen CPU. The Ryzen retired-conditional-branches hardware performance counter is not accurate enough; rr will be unreliable.
Explicitly declaring the friend outside the class doesn't help (in fact makes the lookup ambiguous, as if two identical declaration could compete ...?!) and finally declaring the get<> outside as well as defining no_bindings outside does work
Does it have to do with the fact that the declaration is somehow multiple declaration what with the if constexpr?
Even reducing to template<int Offset> friend constexpr char const* get(scope const&) { return "hello"; } doesn't change the compiler's mind
@LucDanton Seriously, I remember noticing similar behaviour with ADL not picking up friends defined in-class. Is this somekind of special case? (Notice how the compiler bindings work fine)
@LucDanton Yup. I realized I had added some annoying-using-declarations in cases where ADL should have been okay, but I'm sure you already figured out why :hopeful face:
@sehe the bindings don’t get any ambiguity by fiat :) much like how foo_type foo(args...); is always syntactically a function decl, even with an empty pack
GCC is wrong here.
All references are to N4431, the latest C++ WD.
[tl;dr: There's a difference between a function being inline (or more precisely, being an inline function, as defined in 7.1.2/2) and being declared with the inline specifier. The constexpr specifier makes a function inline, but...
except when you can
well, I hope that’s what it means. I know it’s an answer by R. Smith and the question seems semi-relevant, so I say that’s good enough
@sehe anyhoo I wanted to share this because I’m writing my first user-defined decomposition, and I was wondering how to make the boilerplate as concise as possible. and instead I got this exhausting marathon of figuring this stuff out—and I had been using ADL get<…> for ages :( not a fun process
I feel it. I might have had the same run-in just with not so much perseverance. I know when I tried my first user-defined bindings ("user-defined decomposition" is the term?) I had a lot of "sigh what else do I need to get right" moments.
Oh, and I'm pretty disappointed that get<N>(some_aggregate) isn't implemented just for consistency.
@sehe I like to describe a type as decomposable if it supports structured bindings (which is the proper term), but I don’t know what the consensus will eventually land on :)
since the constexpr friends require a forward declaration the std::tuple_{size,element} specs probably should appear before the class, too, so that it works for non-templates
By the way has `template<typename A, typename B> struct std::tuple_size<scope<A, B>>: integral_constant<size_t, 2> {};` style of specializing always been possible? I have somehow conditioned myself to always open the relevant namespace first
Yeah. I'm particularly fond of the fact that it does behave as though the namespace was opened (I love the simplified look of unqualified base-class ids)
So, at least there's this that I'll carry with me to my coding cave. And of course the nagging feeling that I should use constexpr more often
Histogram on 4 MP image takes 8 ms, need to get it to 4 ms. Take half of image. Performance problem solved, I'm getting good at this optimization thing.
that way if you get it wrong (or if you get get wrong) the compiler yells at you
@sehe yes, you have typename std::tuple_element_t<Offset, E> ref invented = get<Offset>(e); for each name, where ref is & or && as appropriate for the initializer
like a non-generic forwarding reference aka a non-generic auto&&
it boggles the mind really
@sehe I think I remember, auto [a, b] = init; and auto&& [a, b] = init; have some cleverness to them; I think it’s best explained by walking you through it gently cos what tuple_element_t solves is tricky
Click here
here i have upload the image of equation and i need help to solve that equation in c# or javascript. so please suggest any code related equation
double va;
va = (((10 / 12) * 50182) / (1 - (Math.Pow((1 + (10 / 12)), -60))));
Everybody should know vector isn't POD. (I'm not sure what po-faced means, but saying things like "I cannot imagine that using memcpy to copy a MyVector is going to work well" is downright confusing. Why do you answer if you don't know, when would it work well, and why? So, if "writing it po-faced" means being informative and clear, then yes, that's exactly what this site is about) — sehe4 mins ago
Is it weird I don't find it constructive to hide factual information behind a guise of irony?
Don't say "I cannot imagine" if you really mean "Everybody should know that's illegal and leads to Undefined Behaviour" — sehe6 hours ago
https://arstechnica.com/gaming/2018/02/valve-bans-developer-after-employees-leave-fake-user-reviews/ > *Insel Games* CEO encouraged employees to write reviews for its own game."
SO, I think we need to talk. You became dogmatic.
This reflection stems from this question onhold/closed: What is the best practice for breaking up a single python script into modules?
However I have been thinking about that for some time. I feel that SO has become too dogmatic in closing/putti...
My question is interesting. I'm learning QT Framework with C++ but I wonder a topic. I'm writing a project and want to publish it under the GPL license. In this case, do I have to pay a fee for my QT?
Please answer me. Thanks..
A quick and easy question:
Did something change w.r.t. robot captcha/human verification? I'm seeing this on a daily basis now:
I think in the past I've seen that at most once in 3 months, and usually when I was doing something like pasting an answer I authored off-line at once.
These times,...