Tags: #final #keyword
"I’m preparing some slides to explain how to write better code with C++11/14, and I wanted to start from the last thing I wrote about here, the use of keywords final and override."
https://marcofoco.com/?p=114
"I’m preparing some slides to explain how to write better code with C++11/14, and I wanted to start from the last thing I wrote about here, the use of keywords final and override."
https://marcofoco.com/?p=114
C++ explained to my dog
Final & Override again
I’m preparing some slides to explain how to write better code with C++11/14, and I wanted to start from the last thing I wrote about here, the use of keywords final and override. The scope of…
Tags: #devirtualization
"Devirtualization happens when the compiler can statically decide, at compile time, which function should be called, so it can produce a direct call to that function, or even inline it."
https://marcofoco.com/?p=153
"Devirtualization happens when the compiler can statically decide, at compile time, which function should be called, so it can produce a direct call to that function, or even inline it."
https://marcofoco.com/?p=153
C++ explained to my dog
The power of devirtualization
As stated in a previous post, final keyword enables the sealing of classes and methods. This is important because it allows interesting compile-time checks, but also enables quite a powerful optimi…
Tags: #game #cpp11
Blizzard employee discusses advantages of using C++11 for game engines:
https://github.com/CppCon/CppCon2016/tree/master/Presentations/Game%20Engine%20Using%20C%2B%2B11
Blizzard employee discusses advantages of using C++11 for game engines:
https://github.com/CppCon/CppCon2016/tree/master/Presentations/Game%20Engine%20Using%20C%2B%2B11
GitHub
CppCon/CppCon2016
CppCon2016 - Slides and other materials from CppCon 2016
Tags: #error #handling #strategy
"Errors can have a variety of reasons: The user enters weird input, the operating system cannot give you a file handle or some code dereferences a nullptr. Each of these errors here is different and needs different treatment. "
https://foonathan.github.io/blog/2016/09/07/error-handling-strategy.html
"Errors can have a variety of reasons: The user enters weird input, the operating system cannot give you a file handle or some code dereferences a nullptr. Each of these errors here is different and needs different treatment. "
https://foonathan.github.io/blog/2016/09/07/error-handling-strategy.html
foonathan.github.io
Choosing the right error handling strategy
If you have an error, you have to write code to deal with it. But how do you respond to the error? This post describes the various kinds of errors and how to react to them.
Tags: #cmake #visualstudio
"This article describes the current proof-of-concept support for CMake in Visual Studio. As we evolve the experience in upcoming preview releases, we will continue to update the content here."
https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/
"This article describes the current proof-of-concept support for CMake in Visual Studio. As we evolve the experience in upcoming preview releases, we will continue to update the content here."
https://blogs.msdn.microsoft.com/vcblog/2016/10/05/cmake-support-in-visual-studio/
Tags: #stackoverflow #standard #definition #endofline
https://stackoverflow.com/questions/39885423/c-is-there-a-standard-definition-for-end-of-line-in-a-multi-line-string-const
https://stackoverflow.com/questions/39885423/c-is-there-a-standard-definition-for-end-of-line-in-a-multi-line-string-const
Stack Overflow
C++: Is there a standard definition for end-of-line in a multi-line string constant?
If I have a multi-line string C++11 string constant such as
R"""line 1
line 2
line3"""
Is it defined what character(s) the line terminator/separator consist of?
R"""line 1
line 2
line3"""
Is it defined what character(s) the line terminator/separator consist of?
Tags: #QT #controls2
"As most of you already know, Qt Quick Controls allow you to save time developing user interfaces by utilizing a library of ready-made controls with different styles which you also can easily customize to your liking. The Qt Quick Controls 2 module delivers the next generation UI controls with a great performance boost."
https://blog.qt.io/blog/2016/10/06/qt-quick-controls-2-1-and-beyond/
"As most of you already know, Qt Quick Controls allow you to save time developing user interfaces by utilizing a library of ready-made controls with different styles which you also can easily customize to your liking. The Qt Quick Controls 2 module delivers the next generation UI controls with a great performance boost."
https://blog.qt.io/blog/2016/10/06/qt-quick-controls-2-1-and-beyond/
Tags: #lambdas #cpp17 #variants
"While discussing upcoming C++17 features with other attendees at CppCon 2016, I was surprised to hear complaints about the fact that std::variant visitation requires an external callable object."
https://vittorioromeo.info/index/blog/variants_lambdas_part_1.html
"While discussing upcoming C++17 features with other attendees at CppCon 2016, I was surprised to hear complaints about the fact that std::variant visitation requires an external callable object."
https://vittorioromeo.info/index/blog/variants_lambdas_part_1.html
The Daily C++ via @vote
Which IDE do you prefer?
anonymous poll
Other – 33
👍👍👍👍👍👍👍 31%
QtCreator – 25
👍👍👍👍👍 23%
Visual Studio C++ – 25
👍👍👍👍👍 23%
Eclipse – 7
👍 6%
Dev C++ – 6
👍 6%
CLion – 5
👍 5%
Code::Blocks – 5
👍 5%
KDevelop – 1
▫️ 1%
Netbeans – 1
▫️ 1%
👥 108 people voted so far.
anonymous poll
Other – 33
👍👍👍👍👍👍👍 31%
QtCreator – 25
👍👍👍👍👍 23%
Visual Studio C++ – 25
👍👍👍👍👍 23%
Eclipse – 7
👍 6%
Dev C++ – 6
👍 6%
CLion – 5
👍 5%
Code::Blocks – 5
👍 5%
KDevelop – 1
▫️ 1%
Netbeans – 1
▫️ 1%
👥 108 people voted so far.
Tags: #easylambda #lambda #benchmarks
"EasyLambda aims to provide a high level parallel programming abstraction while incurring minimal overheads."
https://haptork.github.io/easyLambda/docs/benchmarks/
"EasyLambda aims to provide a high level parallel programming abstraction while incurring minimal overheads."
https://haptork.github.io/easyLambda/docs/benchmarks/
easyLambda
Benchmarks
Benchmarks for performance and ease of use
Tags: #cppcon #2016 #video
https://cppcon.org/all-cppcon-2016-videos-are-up/
Channel Youtube: https://www.youtube.com/user/CppCon
https://cppcon.org/all-cppcon-2016-videos-are-up/
Channel Youtube: https://www.youtube.com/user/CppCon
YouTube
CppCon
Visit cppcon.org for details on next year's conference. CppCon sponsors have made it possible to record and freely distribute over 1000 sessions from the first CppCon in 2014 to the present. We hope you enjoy them!
Tags: #multidimensional #array
https://nadeausoftware.com/articles/2012/06/c_c_tip_how_loop_through_multi_dimensional_arrays_quickly
https://nadeausoftware.com/articles/2012/06/c_c_tip_how_loop_through_multi_dimensional_arrays_quickly
Nadeausoftware
C/C++ tip: How to loop through multi-dimensional arrays quickly | Nadeau Software
This article benchmarks nine common multi-dimensional array loop and indexing methods and four common compilers to find the fastest method to loop through multi-dimensional arrays quickly.
Tags: #qtlite #2drenderer
"Qt 5.8 will include IoT-oriented “Qt Lite” technology that enables fine-grained configuration and supports small-footprint IoT gizmos without OpenGL."
https://hackerboards.com/new-qt-lite-adds-2d-renderer-targets-16mb-ram-linux-systems/
"Qt 5.8 will include IoT-oriented “Qt Lite” technology that enables fine-grained configuration and supports small-footprint IoT gizmos without OpenGL."
https://hackerboards.com/new-qt-lite-adds-2d-renderer-targets-16mb-ram-linux-systems/
HackerBoards
New "Qt Lite" adds 2D renderer, targets 16MB RAM Linux systems
Qt 5.8 will include IoT-oriented “Qt Lite” technology that enables fine-grained configuration and supports small-footprint IoT gizmos without OpenGL.