Forwarded from Syra's Techbinder
https://herbsutter.com/2016/06/30/trip-report-summer-iso-c-standards-meeting-oulu/
Tags: #programming #Cpp
Tags: #programming #Cpp
Sutter’s Mill
Trip report: Summer ISO C++ standards meeting (Oulu)
On June 25, the ISO C++ committee completed its summer meeting in Oulu, Finland, hosted by Symbio and the Finnish national body. We again had some 100 experts officially representing nine national …
Tags: #passkey #idiom #empty #classes
"After last week’s post about tag dispatch let’s have a look at another example for useful empty classes"
http://arne-mertz.de/2016/10/passkey-idiom/
"After last week’s post about tag dispatch let’s have a look at another example for useful empty classes"
http://arne-mertz.de/2016/10/passkey-idiom/
Simplify C++!
Passkey Idiom: More Useful Empty Classes - Simplify C++!
Another example for useful empty classes: The passkey idiom can help us regain control that we would give up by simply making classes friends.
Tags: #if #evaluation #vs #readability
if statement - short circuit evaluation vs readability
http://stackoverflow.com/questions/40081279/if-statement-short-circuit-evaluation-vs-readability
if statement - short circuit evaluation vs readability
http://stackoverflow.com/questions/40081279/if-statement-short-circuit-evaluation-vs-readability
Stackoverflow
if statement - short circuit evaluation vs readability
Sometimes, an if statement can be rather complicated or long, so for the sake of readability it is better to extract complicated calls before the if.
e.g. this:
if (SomeComplicatedFunctionCall() ||
e.g. this:
if (SomeComplicatedFunctionCall() ||
Tags: #emulating #typedefs #strongoropaque
"Strong or opaque typedefs are a very powerful feature if you want to prevent errors with the type system "
https://foonathan.github.io/blog/2016/10/19/strong-typedefs.html
"Strong or opaque typedefs are a very powerful feature if you want to prevent errors with the type system "
https://foonathan.github.io/blog/2016/10/19/strong-typedefs.html
foonathan.github.io
Tutorial: Emulating strong/opaque typedefs in C++
Strong or opaque typedefs are typedefs that truly create new types instead of aliases. They are very useful to prevent accidental conversions and give more semantic meanings. This post shows you how they can be emulated in C++ today.
The Daily C++ via @like
Tags: #check #types #modernescpp
"Template Metaprogramming is programming at compile time. But what has template metaprogramming in common with the type-traits library?"
http://www.modernescpp.com/index.php/check-types
"Template Metaprogramming is programming at compile time. But what has template metaprogramming in common with the type-traits library?"
http://www.modernescpp.com/index.php/check-types
Modernescpp
Check Types - ModernesCpp.com
The Daily C++ via @like
Tags: #stackoverflow #Stroustrup
At which point occurs template Instantiation binding?
http://stackoverflow.com/questions/39959072/at-which-point-occurs-template-instantiation-binding
At which point occurs template Instantiation binding?
http://stackoverflow.com/questions/39959072/at-which-point-occurs-template-instantiation-binding
Stackoverflow
At which point occurs template Instantiation binding?
This code is from "C++ programming language" by Bjarne Stroustrup (C.13.8.3 Point of Instantiation Binding)
template
void f(T value)
{
g(value);
}
void g(int v);
void h()
{
template
void f(T value)
{
g(value);
}
void g(int v);
void h()
{
Tags: #standard #wishlist #cpp0x
This is a list of suggested additions to the standard C++ library for the next version of C++ ("C++0x").
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1901.html
This is a list of suggested additions to the standard C++ library for the next version of C++ ("C++0x").
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1901.html
Tags: #variadic #templates
"Like regular templates, variadic templates can also be used when defining classes and structures. There are several methods in C++ your use to control the generated code."
http://cppisland.com/?p=194
"Like regular templates, variadic templates can also be used when defining classes and structures. There are several methods in C++ your use to control the generated code."
http://cppisland.com/?p=194
C++ Island
C++ Variadic templates from the ground up
Its the new projec’s kickoff meeting. You’ve been assigned one of the most important tasks: writing a sum function (yes I know, work with me here..) the function needs to accept two…
Tags: #visualstudio #code #tutorial
"Over the last few months, we have heard a lot of requests with respect to adding capability to Visual Studio Code to allow developers to build their C/C++ application."
https://blogs.msdn.microsoft.com/vcblog/2016/10/24/building-your-c-application-with-visual-studio-code/
"Over the last few months, we have heard a lot of requests with respect to adding capability to Visual Studio Code to allow developers to build their C/C++ application."
https://blogs.msdn.microsoft.com/vcblog/2016/10/24/building-your-c-application-with-visual-studio-code/
Tags: #obfuscated #c #competition
"I was looking through the book Expert C Programming again when I came upon their “light relief” section on The Internation Obfuscated C Code Competition. It’s a contest to write the most obscure code."
http://faehnri.ch/have-fun/
"I was looking through the book Expert C Programming again when I came upon their “light relief” section on The Internation Obfuscated C Code Competition. It’s a contest to write the most obscure code."
http://faehnri.ch/have-fun/
Tags: #modernescpp #feature
"User-defined literals are a convenient feature added in C++11. "
http://arne-mertz.de/2016/10/modern-c-features-user-defined-literals/
"User-defined literals are a convenient feature added in C++11. "
http://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."
http://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."
http://www.viva64.com/en/b/0441/
Tags: #stackoverflow #lambdas #generic
Why generic lambdas are allowed while nested structs with templated methods aren't?
http://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?
http://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"
http://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"
http://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?
http://stackoverflow.com/questions/40282118/what-is-the-rationale-behind-decltype-behavior#
What is the rationale behind decltype behavior?
http://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
http://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
http://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