Default Visual Studio Project Settings to Use “rvalueCast”

旧城冷巷雨未停 提交于 2019-12-30 10:27:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!