C++ News

10/20/2020,
"How do you develop secure code?" I've been asked this a lot recently and it is time for a blog post as the public and various parts of Microsoft have gotten a glimpse of how much Azure Sphere...
9/17/2020, MS Dev Blogs
C++/WinRT is a freestanding library that is not dependent upon any Windows operating system header files. You are welcome to stay completely in the C++/WinRT world, but it's not uncommon to have...
9/16/2020, MS Dev Blogs
After upgrading to version 2.0.200729.8 of C++/WinRT, some customers reported that they lost the ability to co_await a std::future or a Concurrency::task. What happened? The relevant change is...
9/16/2020, MS Dev Blogs
CMake is now 20! Kitware posted yesterday an interview with Bill Hoffman, the original creator for CMake and shared that August 31 was CMake's 20th birthday Here, in the C++ team, we are not...
In today’s episode, Jeffrey Palermo is joined by a really exciting guest; Robert C Martin, better known as Uncle Bob Martin!   If you don’t already know Bob, he is a software engineer,...
9/4/2020, MS Dev Blogs
Rust and C++ are two popular systems programming languages. For years, the focus of C++ has been on performance. We are increasingly hearing calls from customers and security resea
9/3/2020, MS Dev Blogs
C++20 added two new library features for those of you that like bit twiddling: “bit rotating and counting functions” and “integral power of two operations”. Most of the added function templates...
8/28/2020, MS Dev Blogs
Last time, we looked at converting from the C++/WinRT implementation type to the corresponding C++/WinRT projection type. Going from the projection back to the impl
8/27/2020, MS Dev Blogs
The following blog post was written by guest author Carlos Fraguas from Mercury Steam Entertainment. He describes how he used the C++ Build Insights SDK to add the new /timetrace option in <a...
8/13/2020, MS Dev Blogs
C++20 demands a lot more from the ecosystem than ever before. With C++20 Modules on the horizon the compiler needs to work closely with project systems in order to provide rich information for...
8/3/2020, MS Dev Blogs
At the Microsoft Build conference, you may have seen our C++ Codespaces demo (at 26:00). We showed several ways Codespaces can improve your C++ development experience, including offloading your...
7/24/2020,
  #JulyOT This is part of the #JulyOT IoT Tech Community series, a collection of blog posts, hands-on-labs, and videos designed to demonstrate and teach developers how to build projects with...
7/24/2020, MS Dev Blogs
I noted in a footnote that it's important to use RAII types for all of your cleanup in a coroutine because cancellation will cause the coroutine to abruptly stop executing at the next suspension...
7/23/2020, MS Dev Blogs
We saw last time that you can hasten the cancellation of your C++/WinRT coroutine by polling for cancellation. But that works only if it's the top-level coroutine that needs to respond to the...
7/14/2020, MS Dev Blogs
Last time, we put together a little traits class to decompose a function pointer into its components. But one thing missing from our class is the noexcept qualifier. For the remainder of the...
7/13/2020, MS Dev Blogs
I always forget how to deconstruct a function pointer type in a C++ template, so I'm writing it down. We start by saying that FunctionTraits is a template class that takes a single type...
7/10/2020, MS Dev Blogs
Some time ago, we observed that C++/WinRT relies on the ABI result from the Get­Results() method to report cancellation. This is different from how task cancellation is projected in C# and...
7/3/2020, MS Dev Blogs
Last time, we looked at how task cancellation is projected in C++/CX with PPL and explicit continuations. But how about C++/CX with PPL and coroutines? Notice that coroutines save us a lot of...
7/2/2020, MS Dev Blogs
We began our investigation of Windows Runtime cancellation with how task cancellation is projected in C#. But how about C++/CX with PPL and explicit continuations? Okay, let's do this. Setting...
7/2/2020, MS Dev Blogs
What's New We've been busy implementing C++20 features in MSVC's compiler and Standard Library, and migrating the latter to microsoft/STL on GitHub - in fact, we've been so busy that we haven't...