#cpp #metaclasses
A Summary of the Metaclasses Proposal for C++
http://www.fluentcpp.com/2017/08/04/metaclasses-cpp-summary/
A Summary of the Metaclasses Proposal for C++
http://www.fluentcpp.com/2017/08/04/metaclasses-cpp-summary/
Fluent C++
A Summary of the Metaclasses Proposal for C++
Expressive code in C++
#cpp17
C++17 in details: Code Simplification
http://www.bfilipek.com/2017/07/cpp17-details-simplifications.html?utm_content=buffera43ba&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer&m=1
C++17 in details: Code Simplification
http://www.bfilipek.com/2017/07/cpp17-details-simplifications.html?utm_content=buffera43ba&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer&m=1
Bfilipek
C++17 in details: Code Simplification
What C++17 language features do make code cleaner, more expressive and easy to read? Let's have a look at constexpr if, inline variable, structured bindings and more.
#cpp #cpp20 #synchronized
What advantage does the new feature, "synchronized" block, in C++ provide?
https://stackoverflow.com/questions/45487135/what-advantage-does-the-new-feature-synchronized-block-in-c-provide
What advantage does the new feature, "synchronized" block, in C++ provide?
https://stackoverflow.com/questions/45487135/what-advantage-does-the-new-feature-synchronized-block-in-c-provide
Stack Overflow
What advantage does the new feature, "synchronized" block, in C++ provide?
There's a new experimental feature (probably C++20), which is the "synchronized block". The block provides a global lock on a section of code. The following is an example from cppreference.
#inclu...
#inclu...
#cpp #gcc #clang
Compiler benchmark GCC and Clang on C++ library (ETL)
https://baptiste-wicht.com/posts/2017/08/compiler-benchmark-gcc-clang-cpp-library-etl.html
Compiler benchmark GCC and Clang on C++ library (ETL)
https://baptiste-wicht.com/posts/2017/08/compiler-benchmark-gcc-clang-cpp-library-etl.html
Blog blog("Baptiste Wicht");
Compiler benchmark GCC and Clang on C++ library (ETL)
Comparison of compilation time and runtime using different compilers
#cpp
C++ {*this} inside curly braces
https://stackoverflow.com/questions/45557407/c-this-inside-curly-braces
C++ {*this} inside curly braces
https://stackoverflow.com/questions/45557407/c-this-inside-curly-braces
Stack Overflow
c++ {*this} inside curly braces
The following code compiles fine:
g++ -std=c++11 test.cpp -Wall -Wextra -Wfatal-errors && ./a.out
However, if I remove the curly braces from {*this} and use *this instead, I will face with
g++ -std=c++11 test.cpp -Wall -Wextra -Wfatal-errors && ./a.out
However, if I remove the curly braces from {*this} and use *this instead, I will face with
#cpp17
C++17 in details: Filesystem
http://www.bfilipek.com/2017/08/cpp17-details-filesystem.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+CodeAndGraphics+(Code+And+Graphics)&m=1
C++17 in details: Filesystem
http://www.bfilipek.com/2017/08/cpp17-details-filesystem.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+CodeAndGraphics+(Code+And+Graphics)&m=1
C++ Stories
C++17 in details: Filesystem
Although C++ is an old programming language, its Standard Library misses a few basic things. Features that Java or .NET had for years were/are not available in STL. With C++17 there’s a nice improvement: for example, we now have the standard filesystem!
Traversing…
Traversing…
#cpp #random
Generating Random Numbers From a Specific Distribution By Inverting the CDF
https://blog.demofox.org/2017/08/05/generating-random-numbers-from-a-specific-distribution-by-inverting-the-cdf/amp/
Generating Random Numbers From a Specific Distribution By Inverting the CDF
https://blog.demofox.org/2017/08/05/generating-random-numbers-from-a-specific-distribution-by-inverting-the-cdf/amp/
The blog at the bottom of the sea
Generating Random Numbers From a Specific Distribution By Inverting the CDF
The last post talked about the normal distribution and showed how to generate random numbers from that distribution by generating regular (uniform) random numbers and then counting the bits. What w…
#cpp
C++17: Direct vs Copy List Initialization
http://www.nuonsoft.com/blog/2017/08/09/c17-direct-vs-copy-list-initialization/
C++17: Direct vs Copy List Initialization
http://www.nuonsoft.com/blog/2017/08/09/c17-direct-vs-copy-list-initialization/
#cpp #atoi
atoi() for int128_t type
https://stackoverflow.com/questions/45608424/atoi-for-int128-t-type
atoi() for int128_t type
https://stackoverflow.com/questions/45608424/atoi-for-int128-t-type
Stack Overflow
atoi() for int128_t type
How can I use argv values with int128_t support? I know about atoi() and family of functions exposed by <cstdlib> but somehow I cannot find one for int128_t fixed width integer. This might be
#cpp
Binding std::function to member functions
http://cpptruths.blogspot.it/2017/08/binding-stdfunction-to-member-functions.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+CppTruths+(C%2B%2B+Truths)&m=1
Binding std::function to member functions
http://cpptruths.blogspot.it/2017/08/binding-stdfunction-to-member-functions.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+CppTruths+(C%2B%2B+Truths)&m=1
cpptruths.blogspot.co.uk
Binding std::function to member functions
I realized that std::function can be bound to member functions without requiring the *this object. Consider the following examples. // st...
#cpp
C++ Core Guidelines: Semantic of Function Parameters and Return Values
http://www.modernescpp.com/index.php/c-core-guidelines-semantic-of-function-parameter-and-return-values
C++ Core Guidelines: Semantic of Function Parameters and Return Values
http://www.modernescpp.com/index.php/c-core-guidelines-semantic-of-function-parameter-and-return-values
Modernescpp
C++ Core Guidelines: Semantic of Function Parameters and Return Values - ModernesCpp.com
#cpp
Partial Specialization and Tags
https://vector-of-bool.github.io/2017/08/12/partial-specializations.html
Partial Specialization and Tags
https://vector-of-bool.github.io/2017/08/12/partial-specializations.html
vector-of-bool.github.io
Partial Specialization and Tags
In which I talk about how to emulate partial specialization of function templates and talk about why we actually want to partially specialize function templates
#cpp
Allocator for (Re)Actors with Optional Kinda-Safety and Relocation
http://ithare.com/allocator-for-reactors-with-optional-kinda-safety-and-relocation/
Allocator for (Re)Actors with Optional Kinda-Safety and Relocation
http://ithare.com/allocator-for-reactors-with-optional-kinda-safety-and-relocation/
IT Hare on Soft.ware
Allocator for (Re)Actors with Optional Kinda-Safety and Relocation
si