Initialisation in modern C++ - Timur Doumler

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 7

  • @treyquattro
    @treyquattro 4 ปีที่แล้ว +4

    re: p0960: Nicolai tells us to always use {} for initialization everywhere! C++ continues to get more complicated and confusing with every release.

  • @limatoad1
    @limatoad1 3 หลายเดือนก่อน

    Tell your camera man to just zoom out instead of panning every other second.

  • @serhankars
    @serhankars ปีที่แล้ว

    Oh my god, I wanted to scream when Foo foo{} calls default constructor instead of initalizer_list overload. at 38:40 :)

  • @pavelperina7629
    @pavelperina7629 4 ปีที่แล้ว

    auto i20 = static_cast(42); // because according to some static analysis tools case i12 is not cool and modern enough

  • @mwont
    @mwont 5 ปีที่แล้ว +5

    This is madness. The fact that C++ does not want to break backward compatibility hurts the language.

    • @timurdoumler4813
      @timurdoumler4813 5 ปีที่แล้ว +7

      But backward compatibility is also a huge strength which many other programming languages lack.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +3

      @@timurdoumler4813 yeah it ends up being a rock and a hard place.