问题
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"
Is there a way to add "/Zc:rvalueCast" to my "project defaults" so everything will use it, including future projects?
回答1:
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)
来源:https://stackoverflow.com/questions/37976395/default-visual-studio-project-settings-to-use-rvaluecast