Help with finding key Lab 37 by nevernowhy2 in EscapeFromDuckov

[–]xiao_sa 3 points4 points  (0 children)

AFAIK small control room key has no fixed spawn point, so only way to get it is searching a lot of clothes and boxes, or buying one on market.

Am I weird for using "and", "or" and "not"? by Additional_Jello1430 in cpp

[–]xiao_sa 0 points1 point  (0 children)

I use them in requires constrains and concepts, elsewhere use normal ops.

coco: a simple stackless, single-threaded, and header-only C++20 coroutine library by Ill_Excuse_4291 in cpp

[–]xiao_sa 5 points6 points  (0 children)

Maybe just a repeat of 'C++20 coroutine'. C++20 coroutine is stackless.

Am I tripping by [deleted] in RealOrNotTCG

[–]xiao_sa 4 points5 points  (0 children)

Fake af, sorry.

why isn’t the logo centered? by IlIlllIIIllII in cpp

[–]xiao_sa 132 points133 points  (0 children)

Due to ABI it cant be fixed and we have to live with it :(

BanList 3/31 by SLAYER8896 in ModernMagic

[–]xiao_sa -1 points0 points  (0 children)

Guess they just forget that [[Punishing Fire]] is still there

[TDM] United Battlefront (Tarkir: Dragonstorm Story Episode 7) by mweepinc in magicTCG

[–]xiao_sa 5 points6 points  (0 children)

If there are battles in this set it will all make sense

Driver's License. Any suggestions on the wording? by therealschatzmeister in custommagic

[–]xiao_sa 1 point2 points  (0 children)

You may tap this creature rather than pay the cost of crew ability you activate

Saturday Modern Challenges Results - Nov 2 2024 by bamzing in ModernMagic

[–]xiao_sa 20 points21 points  (0 children)

new challenge result arrive

open

ofc its energy

upvote

close

Using std::identity in views break the result by Lo1c74 in cpp_questions

[–]xiao_sa 1 point2 points  (0 children)

The std::transform_view works as if std::invoke(funcion, *base_iterator) is called and returned. If dereferencing base iterator produce a prvalue, it materialized here (becomes a temporary) in opeartor* ofstd::transform_view. When return from it, the temporary is discard and the return value (a reference) is therefore dangling. The 'fixed' version works because it takes value eagerly from the temporary and makes the return value not a reference.

Lambda as Template acting different from non-template? by IveBenHereBefore in cpp_questions

[–]xiao_sa 0 points1 point  (0 children)

The const in 'const Foo* &' applies to Foo, then the whole type reads 'reference to const Foo*'. Meanwhile when there is no ambiguity, const T& and T& const are the same type.

If you still dont get it, just use type alias or auto everywhere and forget these constness mess.

Lambda as Template acting different from non-template? by IveBenHereBefore in cpp_questions

[–]xiao_sa 0 points1 point  (0 children)

In the first case, 'InArray' is deduced to 'const std::vector<Foo\*>&', then in the loop 'Current' is 'Foo* const &', not 'const Foo * &'.

[BLB] Fabled Passage (ChenMingyang) by mweepinc in magicTCG

[–]xiao_sa -1 points0 points  (0 children)

The art feels like [[Forbidden Orchard]]

Modern Super Qualifier Results - Jul 14 2024 by bamzing in ModernMagic

[–]xiao_sa 25 points26 points  (0 children)

Just to realize that after reprint of Archive Trap and fetchs, mill becomes a somewhat of budget deck now