C++ Team Blog
The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team
Latest posts
constexpr Complete For VS 2015 RTM: C++11 compiler, C++17 STL
We've finished implementing constexpr for VS 2015 RTM, and we've updated the online compiler at webcompiler.cloudapp.net with our latest development build. As I previously mentioned, the compiler currently supports C++11's original rules for constexpr. C++14 extended constexpr will be implemented in the future, but not in 2015 RTM. In the STL, we've implemented every occurrence of constexpr in the current C++17 Working Paper N4527, with a very small number of exceptions: And by "implemented", I mean that I've got a test case that exercises every occurre...
It is May – Take Our Survey!
Thank you for your continued support of our surveys -- the response rate continues to be phenomenal! We appreciate the time you spend, the detailed answers you provide, and your willingness to connect 1:1 to help us better understand how you create software. Thank you! We have another survey. This one focuses on the tools you use and their interaction with Visual Studio. It will take around 12 minutes to complete. Click on over to http://www.instant.ly/s/hmy5G now!
Real World Cross-Platform Development with Visual Studio 2015: Synergex
The Visual C++ team welcomes opportunities to help partners, customers and the community (future customers) realize the benefits of Visual C++ and Visual Studio 2015. Recently, we have been fortunate to work with Synergex to go beyond debugging Windows code with Visual Studio: Now we’re focusing our efforts on moving our customers and our own development to Visual Studio 2015. Initially, we ran into problems with the Linux-built unmanaged runtime, which would not work with the new, faster Microsoft Android emulator. To work around this, we created a shared project for our runtime and added the Android compo...
Bringing Clang to Windows
As you may know, Visual Studio now supports building Android and iOS applications using Clang. We realize the need of our users to write cross-platform apps and we know that C++ offers massive benefits in the cross-platform arena. Clang has made impressive strides in standards conformance and diagnostics and is fast becoming the preferred C++ compiler for non-Windows platforms. In order to extend the benefits of Clang to C++ developers building apps for Windows, we have been working on an experimental implementation of Clang on Windows. First preview of that was demonstrated in this //build talk by Jim Radigan. ...
Visual Studio 2015 RC Now Available!
Today Soma (and Brian and Scott) announced the availability of Visual Studio 2015 RC, Team Foundation Server 2015 and Visual Studio 2013 Update 5. They all point to the downloads, so if you are in a hurry: Please submit feedback. You C/C++ developers have never been shy about voicing your concerns; channel that energy into providing us critical feedback about where we can improve your experience and better support your development scenarios! We read everything you share with us. UPDATE 4/30/2015: Install issues. Thanks for your installation problem feedback. There are a couple of things you can tr...
MFC Dynamic Dialog Layout
One of the frequently requested MFC features (and by the way, thanks for the feedback and keep it coming!) is the ability to intelligently resize dialogs and their content at runtime. One approach is to intercept WM_SIZE message of the parent dialog and recalculate the size and position of the child controls accordingly. It works, but is extremely error prone – just imagine doing this for each control in every dialog in your application. It also introduces non-trivial logic in the presentation layer of you application, creating maintenance headaches down the road. In Visual Studio 2015 RC, we’r...
Single-File IntelliSense and other IDE Improvements in VS2015
Hello C++ World! With the release of RC today, we've got a whole bunch of goodies in the IDE, not the least of which is refactoring as well as a really neat feature we like to call Single-File IntelliSense, where you can simply open a file (not needing a VC project) and take advantage of browsing, IntelliSense, and navigation support in VS! That's right, now you can see all this goodness: with nothing but source files! Check out the Channel 9 video for more info! Check out this short video on our IDE improvements since VS2013 Update 2 (when the shared asset project experience). For more info and demos on ...
Debug C++ code on Linux from Visual Studio
As you may have heard, Visual Studio 2015 introduces GDB support for Android development. The interesting thing about the capability is that because it debugs using GDB, it’s possible to adapt the implementation to debug other targets that support GDB debugging as well (e.g. Linux and Raspberry Pi). In this post I will share the steps I took to enable remote debugging of C++ code on Linux, Raspberry Pi.The approach does come with some limitations as I’m adapting the implementation that was designed specifically for Android, but it shows the potential for the capability. This is a good example of why w...
C++11/14/17 Features In VS 2015 RC