要使用的默认Visual Studio项目设置“rvalueCast” [英] Default Visual Studio Project Settings to Use "rvalueCast"

查看:253
本文介绍了要使用的默认Visual Studio项目设置“rvalueCast”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个< sarcasm>令人震惊的< / sarcasam>发现:



有没有办法添加/ Zc:rvalueCast到我的项目默认值

解决方案

相应地编辑microsoft.cpp.win32.user属性表。



要访问它,请打开解决方案的属性管理器。 (找到属性管理器有时很棘手 - 请参阅


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?

解决方案

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)

这篇关于要使用的默认Visual Studio项目设置“rvalueCast”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆