consteval - must compute at compile-time | Modern Cpp Series Ep. 205

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

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

  • @VoidloniXaarii
    @VoidloniXaarii 4 วันที่ผ่านมา

    Thank you so much! I keep confusing the two, I think this helped me one step further

    • @MikeShah
      @MikeShah  4 วันที่ผ่านมา

      Cheers!

  • @sky333suraj
    @sky333suraj 9 วันที่ผ่านมา +2

    Very nice tutorial 🧊 🎉🎉🎉

    • @MikeShah
      @MikeShah  8 วันที่ผ่านมา

      Cheers!

  • @GaryChike
    @GaryChike 9 วันที่ผ่านมา +1

    It's interesting that C23 has adopted 'constexpr' as well although at this juncture `constexpr` is primarily intended for constant expressions and variables, rather than functions.

    • @MikeShah
      @MikeShah  8 วันที่ผ่านมา +1

      I suspect C29 'might' add the ability to work with functions after they see adoption, but C is known to evolve quite slowly :)

    • @GaryChike
      @GaryChike 8 วันที่ผ่านมา +1

      @@MikeShah In the meantime, I've been having fun using '' (C++20) and '' (C++23). Looking forward to the implementation of modules as in 'import std;' in C++26.
      The classic C++ "hello world" program will be forever changed:
      import std;
      auto main()-> int {
      std::println("Hello, World!");
      }

    • @MikeShah
      @MikeShah  7 วันที่ผ่านมา +1

      @@GaryChike Indeed, will finally catch up with the times. I've been briefly playing around with modules, looking forward to the day of getting rid of header files 🤣

  • @VoidloniXaarii
    @VoidloniXaarii 6 วันที่ผ่านมา

    Thank you so much, this subject is totally hot 🔥🔥🔥

    • @MikeShah
      @MikeShah  6 วันที่ผ่านมา +1

      Cheers!

    • @VoidloniXaarii
      @VoidloniXaarii 6 วันที่ผ่านมา

      @MikeShah 干杯

  • @CinergyTech
    @CinergyTech 5 วันที่ผ่านมา

    can do a first impression video on the Ring programming language ?

  • @NikolozLortkipanidze
    @NikolozLortkipanidze 4 วันที่ผ่านมา

    Hey how can i link libraries when using vim? i always used visual studio and and was very easy from project properties...

    • @MikeShah
      @MikeShah  4 วันที่ผ่านมา +1

      You can run make from vim with :make, or otherwise run any shell command when in command mode with "!some_command". VIM probably has other plugins to do something similar to Visual Studio, but VIM is by default a text editor. Visual Studio uses its own build system behind the GUI.

    • @NikolozLortkipanidze
      @NikolozLortkipanidze 3 วันที่ผ่านมา

      ​@@MikeShah I’m having a strange error. I used ChatGPT to set up my Makefile (Because I don’t know how to) , and everything works fine when I include in my project. However, as soon as I call glfwInit() or any other GLFW function in my project, I get an error. After error, I experimented a bit and tried using the full path, relative path, and even asked ChatGPT for help, which then rewrite my Makefile. However, nothing seems to be working still ...

  • @aaabbb-gu5pz
    @aaabbb-gu5pz 9 วันที่ผ่านมา +2

    Modern C++ become more and more similar to the brainfuck language and it will share the same future 🤣

    • @What-he5pr
      @What-he5pr 9 วันที่ผ่านมา

      Reproduction of brain babies?

    • @MikeShah
      @MikeShah  8 วันที่ผ่านมา

      C++ is a large language with a lot to keep track of 😅