Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default Visual Studio Project Settings to Use "rvalueCast"

I've made a <sarcasm>shocking</sarcasam> discovery: Visual Studio 2015 is not C++11 compliant by default

I can follow the steps I listed here for each project, or use Notepad++ or similar to do a files replace, but I do notice that the "Command Line" Properties have a checkbox: "Inherit from parent or project defaults"

enter image description here

Is there a way to add "/Zc:rvalueCast" to my "project defaults" so everything will use it, including future projects?

like image 653
Jonathan Mee Avatar asked Jan 20 '26 10:01

Jonathan Mee


1 Answers

Edit the microsoft.cpp.win32.user property sheet accordingly.

To access it, open the property manager for your solution. (It's sometimes tricky to find the property manager - see this question) Then, in the Property Manager, drill down, until you find the user property sheet as shown below. Then right-click and select Properties and edit any settings you like. After you're done, don't forget to save the property sheet (Right-click and select save)

enter image description here

like image 53
zdan Avatar answered Jan 23 '26 03:01

zdan