Moving to C++17

  Рет қаралды 3,749

CopperSpice

CopperSpice

Күн бұрын

Пікірлер: 5
@amenostalgique
@amenostalgique 5 жыл бұрын
Great video, Thanks
@ShadowaOsu
@ShadowaOsu 5 жыл бұрын
Just to clarify, at 7:41 for a simple variable declaration it sounded as if the constexpr keyword does not mark a variable as 'const' and should also be marked const to make it const, which is not true. Marking a variable constexpr will indeed make it const too, thus not changeable. And if you try changing a constexpr variable, the compiler will complain about how that variable is declared as const.
@CopperSpice
@CopperSpice 5 жыл бұрын
For clarification: As of C++14, if you have a constexpr method and you want it to be const, you must explicitly add a const qualifier. This was not a requirement in C++11. As we stated, constexpr does still imply const for variables but it is important to know the difference between these two keywords.
@ShadowaOsu
@ShadowaOsu 5 жыл бұрын
@@CopperSpice after rewatching, I still couldn't catch the part where you explicitly stated that the keyword constexpr will make variables const actually. At 7:42 when you said constexpr will request the expression to be evaluated at compile time and then const qualifier will make their value not changeable, I thought it could lead to confusion for some viewers who aren't familiar with modern C++ as much, so just wanted to add a small clarification. Also, did I miss your mentioning about this? If so I apologize, please send me the time stamp for it. And I have to say that the video was really well prepared and amazing overall. Keep up the great work!
@Kk-bz8zl
@Kk-bz8zl 4 жыл бұрын
how can i download C++17?? to my system
What is the C++ Standard Library?
14:07
CopperSpice
Рет қаралды 10 М.
Is Virtual of Value
13:37
CopperSpice
Рет қаралды 1,5 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
فصل الخريف .. روضة أمل الغد ..
1:09
روضة أمل الغد
Рет қаралды 600
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 578 М.
Auto is Not a Data Type
16:54
CopperSpice
Рет қаралды 1,9 М.
From C++98 to C++11/14/17
1:11:29
NHR@FAU
Рет қаралды 4,2 М.
How to Adopt Modern C++17 into Your C++ Code : Build 2018
50:51
Microsoft Developer
Рет қаралды 76 М.
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН
char8_t
16:16
CopperSpice
Рет қаралды 2 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 343 М.
Static Things
10:15
CopperSpice
Рет қаралды 1,6 М.