Great video, I want to add one thing: As correctly done in the video, all user defined literals should start with an underscore. The standard library reserves all suffixes without an underscore, so if you use names without an underscore the standard library might use the same literals in future versions and break your code.
@@sumanthkavikondala1036 I was also in doubt until I saw the last screen which showed the supported parameters. It clearly showed that const char* had to be passed around with a std::size_t, meaning compiler does indeed do that itself...
At 2:30 what do mean people still mess up the units? hahaha. Lets be clear of something---All computers use and are fully developed and designed with the American Standard Measurement Systems and not the Metric System. So in reply to a standard for all programmers you have it backwards and I will explain why: 1. The metric system is based on 1-10, Standard is based on 1-9--(the computer has no 0). 2. All variable types are based on Standard as 4, 8, 16, 32, 64, plus by 8's. 3. All chip-sets are based on Standard as 8, 16, 32, 64, plus by 8's. 4. All Micro-chips are based on Standard as 8, 16, 32, 64 plus by 8's. 5. All Ports are all based on Standard as 8, 16, 32, 64 plus by 8's. 6. All computer,s math in the stack, heap and registers are all done in American Standards of 8. 16, 32, 64 plus by 8's. 8. The Metric System has to be programmed into computers through software using the American Standard likewise. Why because the computer does not recognize 0. Also the reason everything in them is done in fractions of 1/8, 1/16, 1/32, 1/64 plus is because fractions are Standard not metric. 9. Why are all computer internals all in Standard multiple fractions of 8's? Because 1-9 are in fact only 8 numbers in a computer stack array as..... 0,1,2,3,4,5,6,7,8 1,2,3,4,5,6,7,8,9 In closing---The whole reason C++ has a "Standard" is because it is the "Standard". Lol No offence !
Great video, I want to add one thing:
As correctly done in the video, all user defined literals should start with an underscore. The standard library reserves all suffixes without an underscore, so if you use names without an underscore the standard library might use the same literals in future versions and break your code.
3:18 literal calculations are done at compile-time, so no run-time cost.
6:30 constexpr
8:47
I love your tutorials Bo! They're all crazy helpful.
Great tutorial! So much information, and so simply explained :)
Love your tutorials! Awesome!
Quick and simple, very helpful :) Thank you.
Good intro! Thank you!
Awesome video, thank you!
I would like to ask you the below question:
About the example:
int operator "" _bin (const char* str, size_t L) {
...
for (int i=0; i
u r right how could it pass size automatically
@@sumanthkavikondala1036 I was also in doubt until I saw the last screen which showed the supported parameters.
It clearly showed that const char* had to be passed around with a std::size_t, meaning compiler does indeed do that itself...
At 2:30 what do mean people still mess up the units? hahaha. Lets be clear of something---All computers use and are fully developed and designed with the American Standard Measurement Systems and not the Metric System. So in reply to a standard for all programmers you have it backwards and I will explain why:
1. The metric system is based on 1-10, Standard is based on 1-9--(the computer has no 0).
2. All variable types are based on Standard as 4, 8, 16, 32, 64, plus by 8's.
3. All chip-sets are based on Standard as 8, 16, 32, 64, plus by 8's.
4. All Micro-chips are based on Standard as 8, 16, 32, 64 plus by 8's.
5. All Ports are all based on Standard as 8, 16, 32, 64 plus by 8's.
6. All computer,s math in the stack, heap and registers are all done in American Standards of 8. 16, 32, 64 plus by 8's.
8. The Metric System has to be programmed into computers through software using the American Standard likewise. Why because the computer does not recognize 0. Also the reason everything in them is done in fractions of 1/8, 1/16, 1/32, 1/64 plus is because fractions are Standard not metric.
9. Why are all computer internals all in Standard multiple fractions of 8's? Because 1-9 are in fact only 8 numbers in a computer stack array as.....
0,1,2,3,4,5,6,7,8
1,2,3,4,5,6,7,8,9
In closing---The whole reason C++ has a "Standard" is because it is the "Standard". Lol No offence !
No offense but don't know what are you trying to say. Unfortunately you are not Bo !!!
I am using netbeans