« first day (2990 days earlier)      last day (993 days later) » 

02:08
GM
 
2 hours later…
03:58
HI @Shubhank
hi
wassup
Not bad! Thanks. How's everything?
Have you code with modernC++?
all fine here too
no, what's changed in modern C++?
21
Q: 'auto' not allowed in function prototype with Clang

coincoinUsing Clang 3.5, 3.6, or 3.7, with the flag std=c++1y the following code does not compile : #include <iostream> auto foo(auto bar) { return bar; } int main() { std::cout << foo(5.0f) << std::endl; } The error given is : error: 'auto' not allowed in function prototype I do not have erro...

I'm learning it
the auto keyword for simple function: auto add(auto x, auto y) {return x+y;}
but issue fire like that. g++ Ok but clang++ not.
Still don't know how to choose which one is good :()
oh, way above my level as of now :D
good to know you keeping up to date with new languages on the block
04:07
yah, I learn some to prepare for education app: C++, Pascal, Python, TS :v
We argue a lot in Vietnamese group about coding style, They don't like auto, me not :v
this one from expert youtube.com/watch?v=xnqTKD8uD64
haha
ah, I've found a good site to argue godbolt.org
just show the assembly and that's it
you are teaching assembly code as well?
04:26
I have use it longtime before, when working for renesas, but don't remember much now.
testing performance
That's page great, I can show which function is compile and how many lines on the right.
awesome

« first day (2990 days earlier)      last day (993 days later) »