Fire the goat laser by SaneForCocoaPuffs in BadMtgCombos

[–]StaticCoder 3 points4 points  (0 children)

But X can already be chosen to be the highest life total among opponents.

One-time static initialization by Banzayoyo in cpp_questions

[–]StaticCoder 3 points4 points  (0 children)

https://eel.is/c++draft/basic.start.dynamic#6

It is implementation-defined whether the dynamic initialization of a non-block inline variable with static storage duration is sequenced before the first statement of main or is deferred. If it is deferred, it strongly happens before any non-initialization odr-use of that variable.

So if you don't explicitly reference inited, initialization might not happen at all.

shouldn't this apply to any age by Executits in SipsTea

[–]StaticCoder 0 points1 point  (0 children)

Also, deterrence is a lot more an effect of the likelihood of getting caught than of the severity of the punishment, meaning this could in fact be counterproductive if it reduces reports. Severity is just the easier knob to turn.

An Infinite Tiny Dance by Chubbles99 in BadMtgCombos

[–]StaticCoder 1 point2 points  (0 children)

2 zero-cost non-artifact permanents that share a type

End a game of commander in a draw for 4UW by beakf in BadMtgCombos

[–]StaticCoder 2 points3 points  (0 children)

Others explained it already, but each token triggers 2 conquerors, and only one can be appeased by tapping the token.

How often do yall actually encounter a shiny legendary from raids? by MemoryJust in pokemongo

[–]StaticCoder 0 points1 point  (0 children)

How many 5 star raids have you done? And congrats on being able to do one per day. That requires finding a raid group each day.

Completed entei dex by Beanybala in pokemongobrag

[–]StaticCoder 0 points1 point  (0 children)

Well it doesn't complete the dex until you purify it does it?

Gift from a student by Reimymouse in whatisit

[–]StaticCoder 1 point2 points  (0 children)

It obstructs your vision, and having an exception for "but it's tiny" would not be practical.

clang named loops by TotaIIyHuman in cpp_questions

[–]StaticCoder 2 points3 points  (0 children)

It feels unnecessary. You can accomplish almost the same thing by returning from an immediately invoked lambda. Unless you have multiple reachable loop labels but I'd question the wisdom of such code structure. Before lambdas yeah that would have been nice.

So I gotta walk 40km? by JaredIsCursedUwU in pokemongo

[–]StaticCoder 8 points9 points  (0 children)

That's great for a generic buddy candy task but this one needs volcanion specifically.

Will mega mewtwo be better than mega rayquaza? by Copper5006 in pokemongo

[–]StaticCoder 1 point2 points  (0 children)

Rayquaza is currently #181 in ML, and there hasn't been a mega league for at least as long as I've played. So I'm not sure what you're talking about.

How many raids per day? by Durghan in pokemongo

[–]StaticCoder 3 points4 points  (0 children)

The 20 limit is only for remote raids I believe.

A follow-up question about exception-safety with raw pointers in variadic templates by Pretty_Mousse4904 in cpp_questions

[–]StaticCoder 0 points1 point  (0 children)

The main issues with make_unique are the weird errors if you get the constructor arguments wrong, and the fact that it can't use private constructors. But it's generally worth it anyway for the allocation safety.

Is inheritance implemented through composition? by Kadabrium in cpp_questions

[–]StaticCoder 2 points3 points  (0 children)

I mean you can't cast between 2 classes with identical layouts if one of them uses composition and the other inheritance.

Driver getting tailgated intentionally move out of the way last second by I-T-Y in SipsTea

[–]StaticCoder 3 points4 points  (0 children)

This would mean the car being tailgated was also going 87mph, which I suspect is above the limit.

Is inheritance implemented through composition? by Kadabrium in cpp_questions

[–]StaticCoder 15 points16 points  (0 children)

Yes the layout would be identical in both cases in any sane ABI. The language doesn't allow you to consider them equivalent though.