C++ Weekly Episode 18: C++17's contexpr if—Jason Turner
Episode 18 of C++ Weekly.
C++17's constexpr if
by Jason Turner
About the show:
This week Jason previews C++17's upcoming "constexpr if" functionality.
March 23-28, London, UK
By Jason Turner | Jul 5, 2016 10:20 AM | Tags: intermediate c++17
Episode 18 of C++ Weekly.
C++17's constexpr if
by Jason Turner
About the show:
This week Jason previews C++17's upcoming "constexpr if" functionality.
By Adrien Hamelin | Jul 4, 2016 08:00 AM | Tags: intermediate experimental c++11
Have you registered for CppCon 2016 in September? Don’t delay – Registration is open now.
While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2015 for you to enjoy. Here is today’s feature:
functional: What's New, And Proper Usage
by Stephan T. Lavavej
Summary of the talk:
functional gained lots of machinery in C++11, with further changes in C++14 and C++17. This talk will cover what's new in 11/14/17, focusing on how to use it properly. For example, you've probably used std::function, but do you know the criteria for activating the Small Functor Optimization? (It's not just being small!) We'll also look at bind(), mem_fn(), C++17's invoke(), and more.
By Meeting C++ | Jul 2, 2016 08:25 AM | Tags: community
The monthly overview of upcoming C++ User Group meetings at Meeting C++:
C++ User Group Meetings in July
by Jens Weller
From the article:
In July there are 23 C++ User Groups meeting already, and a few more are probably still planning their meetings.
There are 2 new C++ User Groups: Stockholm and Copenhagen.
By Marc Gregoire | Jul 2, 2016 07:10 AM | Tags: None
Marc Gregoire’s and Peter Van Weert’s brand new book “C++ Standard Library Quick Reference”, published by Apress is now available:
C++ Standard Library Quick Reference (Apress)
C++ Standard Library Quick Reference (Amazon)
By Marc Gregoire and Peter Can Weert
From the abstract:
This quick reference is a condensed reference guide to the essential data structures, algorithms, and functions provided by the C++ Standard Library. Used by millions of C++ programmers on a daily basis, the C++ Standard Library features core classes for strings, I/O streams, and various generic containers, as well as a comprehensive set of algorithms to manipulate them. In recent years, the C++11 and C++14 standards have added even more efficient container classes, a new powerful regular expression library, and a portable multithreading library featuring threads, mutexes, condition variables, and atomic variables.
Needless to say, it is hard to know and remember all the possibilities, details, and intricacies of this vast and growing library. This handy reference guide is therefore indispensable to any C++ programmer. It offers a condensed, well-structured summary of all essential aspects of the C++ Standard Library. No page-long, repetitive examples or obscure, rarely used features. Instead, everything you need to know and watch out for in practice is outlined in a compact, to-the-point style, interspersed with practical tips and well-chosen, clarifying examples. The book does not explain the C++ language or syntax, but is accessible to anyone with basic C++ knowledge or programming experience. Even the most experienced C++ programmer though will learn a thing or two from it and find it a useful memory-aid. Among the topics covered are:
- The essentials that the C++ Standard Library has to offer
- How to use containers to efficiently store and retrieve your data
- How to use algorithms to inspect and manipulate your data
- How lambda expressions allow for elegant use of algorithms
- What the standard string class provides and how to use it
- How to write localized applications
- What functionality the library provides for file and stream-based I/O
- What smart pointers are and how to use them to prevent memory leaks
- How to write safe and efficient multi-threaded code using the C++11 threading libraries
By Adrien Hamelin | Jul 1, 2016 08:00 AM | Tags: community
Have you registered for CppCon 2016 in September? Don’t delay – Registration is open now.
While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2015 for you to enjoy. Here is today’s feature:
Grill the Committee
Summary of the talk:
What would you like to know about how the C++ Standard happens?
The panel is made up of members of the C++ Standards Committee and the audience asks the questions.
By Meeting C++ | Jul 1, 2016 02:07 AM | Tags: standardization experimental c++17 advanced
A short overview over the latest highlights from Oulu
Final features of C++17
by Jens Weller
From the article:
With last weeks C++ committee meeting in Oulu, C++17 is feature complete and on its way to become an international standard...
By Blog Staff | Jun 30, 2016 04:17 PM | Tags: None
A comprehensive trip report from the just-concluded ISO C++ meeting:
Trip report: Summer ISO C++ standards meeting (Oulu)
by Herb Sutter
From the article:
The big news is that C++ is feature-complete, and on time! We added several more features to the C++17 working paper (see next section), then approved the result to be sent out this summer for its major ISO international comment ballot, which is the Committee Draft or “CD” ballot.
... At this meeting, we added several more features into C++17: ...
By Adrien Hamelin | Jun 30, 2016 01:15 PM | Tags: None
We all got some surprises like this:
Competing constructors
By Andrzej Krzemieński
From the article:
We start with a known C++ gotcha:
std::vector<int> v (size_t(4), 2); // parentheses std::vector<int> u {size_t(4), 2}; // braces assert (v.size() == 4); assert (u.size() == 2); assert (v[0] == 2); // elements: {2, 2, 2, 2} assert (u[0] == 4); // elements: {4, 2}In this post I want to analyze the source of the problem a bit further, and offer some suggestions on class design.
By Blog Staff | Jun 30, 2016 11:08 AM | Tags: None
Just in time for the Early Bird registration deadline tomorrow, CppCon dropped a new teaser video. Enjoy!
See what previous years' attendees had to say, then come join the festival.
By MichaelWong | Jun 30, 2016 05:52 AM | Tags: None
The good news from Oulu is that we approved the publishing of a draft of C++17.
As I changed job between the last Jacksonville and this Oulu meeting, I have been unable to keep up and write my usual update either post-meeting or pre-Oulu, so I thought I would keep it simple and make up for it in this post (although there have been plenty of other blogs) and show you all the details in a slide deck that I have been using as a keynote at recent ADC++, IWOCL 2016, the Amsterdam SG14/C++ users group meeting, and the Chicago STAC 2016 meetings.
https://wongmichael.com/2016/06/29/c17-all-final-features-from-oulu-in-a-few-slides/
If you just want to see all the features going into C++17 other than the Special Math, Parallelism, Library Fundamentals, and Filesystems TS, just go to slides 44-47 which will contain both the Language and Library features with clickable links for you to follow. The features voted in Oulu are on slide 45 for language and 47 for library.