First, thank you very much for the great lecture! I have a question: so we use integral_constant type, but isn't it possible somehow provide only value, i.e., for example `true`? Because we know, right, that `true` (or `false`) are of type bool? So IMO, it will be more natural to find a way to provide only values. Maybe should we use function templates to be able to deduce type? But, on the other hand, if I am not mistaken, starting from c++17 classes also deduce type, so maybe somehow can we use this?
hi @Andres would you mind if you switch to dark mode background for your vid, i really appreciate if you do that, im sory but i dont really use to read in white background just bcuz my eyes can't keep up
First, thank you very much for the great lecture!
I have a question: so we use integral_constant type, but isn't it possible somehow provide only value, i.e., for example `true`? Because we know, right, that `true` (or `false`) are of type bool? So IMO, it will be more natural to find a way to provide only values. Maybe should we use function templates to be able to deduce type? But, on the other hand, if I am not mistaken, starting from c++17 classes also deduce type, so maybe somehow can we use this?
Difference is that integral_constant and integral_constant are of different types.
With C++17 we can have "auto" as a non-type template parameter. This allows you to use a single parameter cppinsights.io/s/39165dba
@@andreas_fertig That's fantastic! Thank you for the answer )
What is the value for is_pointer?
I guess `true`, because it IS a pointer to... doesn't matter to what (in this case ... to pointer)
Great video
Thank for the video.
hi @Andres would you mind if you switch to dark mode background for your vid, i really appreciate if you do that, im sory but i dont really use to read in white background just bcuz my eyes can't keep up