Tags: #stackoverflow #stdmin
Why does Release/Debug have a different result for std::min?
http://stackoverflow.com/questions/39919069/why-does-release-debug-have-a-different-result-for-stdmin
Why does Release/Debug have a different result for std::min?
http://stackoverflow.com/questions/39919069/why-does-release-debug-have-a-different-result-for-stdmin
Stack Overflow
Why does Release/Debug have a different result for std::min?
Here is the test program:
void testFunc()
{
double maxValue = DBL_MAX;
double slope = std::numeric_limits<double>::quiet_NaN();
std::cout << "slope is " << slope <...
void testFunc()
{
double maxValue = DBL_MAX;
double slope = std::numeric_limits<double>::quiet_NaN();
std::cout << "slope is " << slope <...
Tags: #introduction #qt #gui
"With this course, my concept of teaching Qt has become reality, but I'd like to share my views on Qt with you, and give you an overview over Qt."
http://meetingcpp.com/index.php/br/items/an-introduction-into-qt.html
"With this course, my concept of teaching Qt has become reality, but I'd like to share my views on Qt with you, and give you an overview over Qt."
http://meetingcpp.com/index.php/br/items/an-introduction-into-qt.html
Meetingcpp
An introduction into Qt - Meeting C++
The last 3 weeks I've been busy with teaching Qt. Each monday I was doing an one on one introductory course, from Qt Core to Qt XML. So, for a few weeks I was very busy with Qt, …
Tags: #visualstudio #fasterbuild #performance
With Visual Studio ‘15’ our goal is to considerably improve productivity for C++ developers.
https://blogs.msdn.microsoft.com/visualstudio/2016/10/13/faster-c-solution-load-and-build-performance-with-visual-studio-15/
With Visual Studio ‘15’ our goal is to considerably improve productivity for C++ developers.
https://blogs.msdn.microsoft.com/visualstudio/2016/10/13/faster-c-solution-load-and-build-performance-with-visual-studio-15/
Microsoft
Faster C++ solution load and build performance with Visual Studio “15”
The official source of product insight from the Visual Studio Engineering Team
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...