News

CppCast Episode 82: Catch 2 and C++ the Community with Phil Nash

Episode 81 of CppCast the only podcast for C++ developers by C++ developers. In this episode Rob and Jason are joined by Phil Nash, Developer Advocate at JetBrains, to talk about updates to the Catch Unit test library and new features coming to CLion and ReSharper for C++.

CppCast Episode 82: Catch 2 and C++ the Community with Phil Nash

by Rob Irving and Jason Turner

About the interviewee:

Phil started coding back in the early 80s, on 8-bit home computers: from the ZX-81 to the Commodore 64, in BASIC and assembler. He later moved on to PCs and C++ in the early 90s and, despite forays into other languages, keeps coming back to C++. His career has taken him through domains such as anti-virus, mobile, finance and developer tools - among others. He's the original author of the C++ test framework, Catch and is now Developer Advocate at JetBrains for CLion, AppCode and ReSharper C++. His hobbies include writing podcast bios and trolling the podcast hosts.

Path Exploration -- Adi Shavit

A short stroll along filesystem::path.

Path Exploration

by Adi Shavit

From the article:

The “experimental” Filesystem TS has been with us for a few years living in the std::experiment namespace. With C++17 it will finally be merged into std.

When noexcept?--Edouard of quasardb

A good question with a good answer.

When noexcept?

by Edouard of quasardb

From the article:

In a previous post, we had a look at the new constexpr keyword that has been introduced in C++ 11. Today we'll study another new fancy specifier: noexcept...

Simplifying templates and #ifdefs with if constexpr--Simon Brand

The new if constexpr will change a good part of our code for the better!

Simplifying templates and #ifdefs with if constexpr

by Simon Brand

From the article:

if constexpr is a C++17 feature which allows conditionally compiling code based on template parameters in a clear and minimal fashion. It is essentially an if statement where the branch is chosen at compile-time, and any not-taken branches are discarded without being instantiated...

Capturing perfectly-forwarded objects in lambdas -- Vittorio Romeo

Does [x = std::forward<decltype(x)>] behave like you expect?

capturing perfectly-forwarded objects in lambdas

by Vittorio Romeo

From the article:

Perfect forwarding and forwarding references allow developers to write generic template functions that retain the lvalueness/rvalueness of passed arguments [...] Let's try to use auto&&, std::forward and C++14's generalized lambda capture syntax to implement our desired semantics. [...] What we really want to do is:

  • Capture by copy if a is an rvalue reference.
  • Capture by reference if a is an lvalue reference.

[...]

Technical Debt - More Captureless Lambda Fun -- Adi Shavit

More interesting facts about captureless lambdas.

Technical Debt

by Adi Shavit

From the article:

The series on captureless lambdas generated some interesting comments.  
The articles discusses converting captureless lambdas into function pointers without explicitly specifying the cast-to type, calling conventions and standard conformance and a special callbackizing function for capturing lambdas.

Slides of the 24th of November 2016 BeCPP Meeting

BeCPP_Logo_282x64.pngOn 24th of November, the Belgian C++ Users Group had their next event sponsored by Nikon Metrology.

Slides of the 24th of November 2016 BeCPP Meeting

There were two presentations:

  • "Mobile App Development for Multiple Platforms with Visual C++, 2016" (Marc Gregoire)
  • "What’s new in C++17?" (Peter Van Weert)

If you couldn’t attend the event in person, or if you would like to go over the material again, you can download them from the BeCPP website.

The view from Nov 2016 C++ Standard Meeting Issaquah

Hi all, I have been on airplanes for the last 10 weeks in a row, starting with CPPCON 2016 on September 16 2016. But first, I wanted to update everyone on the latest status of the C++ Standard meeting from Issaquah on Nov 7, 2016. Here is a blog post where you can see a video of what is coming for C++17 and download the slides. You can also see what happened in Issaquah for Evolution, Parallelism, Concurrency, and the latest status of the National Body Comments:

https://wongmichael.com/2016/12/09/the-view-from-nov-2016-c-standard-meeting-issaquah/