cppcon / cppcon2018 Goto Github PK
View Code? Open in Web Editor NEWSlides and other materials from CppCon 2018
Slides and other materials from CppCon 2018
CppCon 2018: Chandler Carruth "Spectre: Secrets, Side-Channels, Sandboxes, and Security"
https://youtu.be/_f7O3IfIR2k
Presentation link: https://www.youtube.com/watch?v=TrC6ROeV4GI
CppCon 2018: Walter E. Brown “C++ Function Templates: How Do They Really Work?”
https://www.youtube.com/watch?v=NIDEjY5ywqU
Git 2.38.1: https://git-scm.com/download/win
$ git clone https://github.com/CppCon/CppCon2018.git
Cloning into 'CppCon2018'...
remote: Enumerating objects: 933, done.
remote: Total 933 (delta 0), reused 0 (delta 0), pack-reused 933
Receiving objects: 100% (933/933), 335.19 MiB | 12.97 MiB/s, done.
Resolving deltas: 100% (398/398), done.
error: unable to create file Posters/codechecker_a_static_analysis_infrastructure_built_on_the_llvmclang_static_analyzer_tool_chain/codechecker_a_static_analysis_infrastructure_built_on_the_llvmclang_static_analyzer_tool_chain__gyorgy_orban_tibor_brunner_gabor_horvath_reka_kovacs__cppcon_2018.pdf: Filename too long
Updating files: 100% (258/258), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
Presentation link: https://www.youtube.com/watch?v=XPzHNSUnTc4
hey, I love your talks, but one thing had me confused:
In the CppCon2018 talk about object lifetimes, the slides claim that auto [s, i] = get_Holder();
was essentially equivalent to
auto e = get_Holder();
auto& s = e.s;
auto& i = e.i;
But that would mean s
is a reference, which is not how I understand auto [s, i]
to behave. Indeed, std::is_reference_v<decltype(s)>
says it's not a reference:
[...]
struct Holder { S s; int i; };
Holder get_Holder() { return {}; }
[...]
S get_S() {
auto [s, i] = get_Holder(); /// structured bindings
auto e = get_Holder();
auto& _s = e.s;
auto& _i = e.i;
std::cout << std::is_reference_v<decltype(s)> << std::is_reference_v<decltype(_s)> <<"\n";
return s;
}
Output:
01
So, I seem to not get something here. Do you have a guess on what's up?
Cheers & thanks for your time, man
The "PDF" document in the repo actually is the GitHub web view of the PDF document
I can find the presentation on YouTube, yet I cannot find the slides in this repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.