Tags: #modernescpp #feature
"User-defined literals are a convenient feature added in C++11. "
https://arne-mertz.de/2016/10/modern-c-features-user-defined-literals/
"User-defined literals are a convenient feature added in C++11. "
https://arne-mertz.de/2016/10/modern-c-features-user-defined-literals/
Simplify C++!
Modern C++ Features - User-Defined Literals - Simplify C++!
User-defined literals are a convenient feature added in C++11. Today I show you the syntax and some basic examples how to define and use them.
Tags: #encryption #mistakes
"6 encryption mistakes that lead to data breaches"
https://www.crypteron.com/blog/the-real-problem-with-encryption/
"6 encryption mistakes that lead to data breaches"
https://www.crypteron.com/blog/the-real-problem-with-encryption/
Tags: #PVS-studio #linux
"Finally! Today we released the first version of PVS-Studio analyzer for Linux. Now Linux developers are getting a new powerful tool to fight bugs in the code."
https://www.viva64.com/en/b/0441/
"Finally! Today we released the first version of PVS-Studio analyzer for Linux. Now Linux developers are getting a new powerful tool to fight bugs in the code."
https://www.viva64.com/en/b/0441/
Tags: #stackoverflow #lambdas #generic
Why generic lambdas are allowed while nested structs with templated methods aren't?
https://stackoverflow.com/questions/40242505/why-generic-lambdas-are-allowed-while-nested-structs-with-templated-methods-aren
Why generic lambdas are allowed while nested structs with templated methods aren't?
https://stackoverflow.com/questions/40242505/why-generic-lambdas-are-allowed-while-nested-structs-with-templated-methods-aren
Stackoverflow
Why generic lambdas are allowed while nested structs with templated methods aren't?
As far as I understand - generic lambdas are transformed into objects of local scope structs with templated operator(). This makes generic lambda very powerful and easy to use tool. On the other ha...
Tags: #routing #from #javascript #includeos
"When creating a web application you need to be able to guide your users to the different content on your site"
https://blog.includeos.org/2016/10/28/routing-paths-in-includeos
"When creating a web application you need to be able to guide your users to the different content on your site"
https://blog.includeos.org/2016/10/28/routing-paths-in-includeos
blog.includeos.org
Routing paths in IncludeOS - from JavaScript to C++
When creating a web application you need to be able to guide your users to the different content on your site. This is done by specifying different routes fo...
Tags #stackoverflow
What is the rationale behind decltype behavior?
https://stackoverflow.com/questions/40282118/what-is-the-rationale-behind-decltype-behavior#
What is the rationale behind decltype behavior?
https://stackoverflow.com/questions/40282118/what-is-the-rationale-behind-decltype-behavior#
Stackoverflow
What is the rationale behind decltype behavior?
As I understood in C++11 decltype(expression) is used to deduce the exact same type of the given expression. But when the expression is put into parentheses itself, then the deduces type is lvalue
Tags: #stackoverflow
C++ Get min / max value of a static constexpr array at compile time
https://stackoverflow.com/questions/40285548/c-get-min-max-value-of-a-static-constexpr-array-at-compile-time
C++ Get min / max value of a static constexpr array at compile time
https://stackoverflow.com/questions/40285548/c-get-min-max-value-of-a-static-constexpr-array-at-compile-time
Stackoverflow
C++ Get min / max value of a static constexpr array at compile time
Let's say I have an array of integers defined like that:
static const int IntArray[] = {1, 5, 10, 12, 17};
Is there a way to the minimum or maximum value at compile time?
UPDATE 1
Thanks to the
static const int IntArray[] = {1, 5, 10, 12, 17};
Is there a way to the minimum or maximum value at compile time?
UPDATE 1
Thanks to the
Tags: #literals #modernescpp
User-defined literals are a unique feature in all mainstream programming languages.
https://www.modernescpp.com/index.php/user-defined-literals
User-defined literals are a unique feature in all mainstream programming languages.
https://www.modernescpp.com/index.php/user-defined-literals
Modernescpp
User-Defined Literals - ModernesCpp.com
Tags: #introduction #qt #application
This tutorial is an introduction to Qt programming and will teach you how to create an application with Qt and C++.
https://blog.davidecoppola.com/2016/10/how-to-create-an-application-with-qt-and-cpp/
This tutorial is an introduction to Qt programming and will teach you how to create an application with Qt and C++.
https://blog.davidecoppola.com/2016/10/how-to-create-an-application-with-qt-and-cpp/
Bits of Bytes
How to create an application with Qt and C++
This tutorial is an introduction to Qt programming and will teach you how to create an application with Qt and C++. Full project and source code is provided
Tags: #cpprestsdk #newversion #available
CppRestSDK 2.9.0 is available on GitHub
https://blogs.msdn.microsoft.com/vcblog/2016/10/21/cpprestsdk-2-9-0-is-available-on-github/
CppRestSDK 2.9.0 is available on GitHub
https://blogs.msdn.microsoft.com/vcblog/2016/10/21/cpprestsdk-2-9-0-is-available-on-github/
Tags: #output #paramaters #fix
"There are some cases where you need to return a value from a function but cannot use the return value."
https://foonathan.github.io/blog/2016/10/26/output-parameter.html
"There are some cases where you need to return a value from a function but cannot use the return value."
https://foonathan.github.io/blog/2016/10/26/output-parameter.html
foonathan.github.io
void foo(T& out) - How to fix output parameters
If you want a function that returns multiple values, you'd use a reference and assign the outputs to that. But using a reference has a few drawbacks - it is not obvious in the caller, requires default construction etc. This post will explain why you sometimes…
Forwarded from Syra's Techbinder
https://blog.davidecoppola.com/2016/10/how-to-traverse-git-repository-using-libgit2-and-cpp/
Tags: #programming #Cpp #git
Tags: #programming #Cpp #git
Bits of Bytes
How to traverse a git repository using libgit2 and C++
This is a very simple C++ tutorial which explains how to use the open-source library libgit2 to navigate through a git repository.
Tags: #bunch #queues #compiler #interview
A friend had a phone interview for a job in a company that I won’t name - It’s Microsoft.
https://medium.com/@corentin.jabot/stranded-with-a-c-compiler-and-a-bunch-of-queues-d347fe2d6cec#.x8q95b3dx
A friend had a phone interview for a job in a company that I won’t name - It’s Microsoft.
https://medium.com/@corentin.jabot/stranded-with-a-c-compiler-and-a-bunch-of-queues-d347fe2d6cec#.x8q95b3dx
Medium
Stranded with a C++ compiler and a bunch of queues
A friend had a phone interview for a job in a company that I won’t name - It’s Microsoft. One of the questions was about describing how he…
Tags: #stackoverflow #performance #asm #codefaster
Why is this C++ code faster than assembly?
https://stackoverflow.com/questions/40354978/why-is-this-c-code-faster-than-assembly
Why is this C++ code faster than assembly?
https://stackoverflow.com/questions/40354978/why-is-this-c-code-faster-than-assembly
Stackoverflow
Why is this C++ code faster than assembly?
I wrote these two solutions for Project Euler Q14, in assembly and in C++. They are the same identical brute force approach. The assembly solution was assembled with
nasm -felf64 p14.asm &&...
nasm -felf64 p14.asm &&...
Tags: #library #datetime
"Fortunately, a rich date and time library based on chrono has been created by Howard Hinnant"
https://mariusbancila.ro/blog/2016/10/31/a-better-date-and-time-c-library/
"Fortunately, a rich date and time library based on chrono has been created by Howard Hinnant"
https://mariusbancila.ro/blog/2016/10/31/a-better-date-and-time-c-library/
Marius Bancila's Blog
A better date and time C++ library
C++11 added a date and time utility library called chrono, available in namespace std::chrono and header . The problem with it is that the library is a general purpose one and therefo…
Tags: #web #assembly #lowlevel
Google, Microsoft, and Mozilla on Monday announced preview versions of WebAssembly, a low-level safe binary format designed to allow C/C++ code to run in web browsers.
https://m.theregister.co.uk/2016/10/31/webassembly_browser_makers_buy_in/?mt=1478132819507
Google, Microsoft, and Mozilla on Monday announced preview versions of WebAssembly, a low-level safe binary format designed to allow C/C++ code to run in web browsers.
https://m.theregister.co.uk/2016/10/31/webassembly_browser_makers_buy_in/?mt=1478132819507
Tags: #coroutines
In The Art of Computer Programming Donald Knuth introduced coroutines as an alternative to the usual function caller/callee idiom where two pieces of code were treated as cooperating equals.
https://www.italiancpp.org/2016/11/02/coroutines-internals/
In The Art of Computer Programming Donald Knuth introduced coroutines as an alternative to the usual function caller/callee idiom where two pieces of code were treated as cooperating equals.
https://www.italiancpp.org/2016/11/02/coroutines-internals/
Italian C++ Community
Coroutines Internals
What are coroutines and why should I care? In The Art of Computer Programming Donald Knuth introduced coroutines as an alternative to the usual function caller/callee idiom where two pieces of code…
Tags: #operations #templates
Transactional operations made easy through lists of scope guards
https://tessil.github.io//2016/11/01/transactional-operations-scope-guard-list.html
Transactional operations made easy through lists of scope guards
https://tessil.github.io//2016/11/01/transactional-operations-scope-guard-list.html
tessil.github.io
Transactional operations made easy through lists of scope guards
The scope guard idiom is a popular idiom in C++. It provides a way to execute a function at the exit of a scope with the possibility of deactivation.