首页 \ 问答 \ 为什么我要在Constructor中使用const的引用?(Why would I want to use reference to const in Constructor?)

为什么我要在Constructor中使用const的引用?(Why would I want to use reference to const in Constructor?)

有点傻问题,但为什么?

为什么我要使用const字符串的引用,而不是仅仅在Constructor中声明一个本地字符串?

class Person (const string &first_name, const string &last_name);
class Person (string first_name, string last_name);

我是否通过这种方式获得了对自动变量的引用? O_O

谢谢!


A bit silly question but Why?

Why would I want to use reference to const string, instead of just declaring a local string in Constructor?

class Person (const string &first_name, const string &last_name);
class Person (string first_name, string last_name);

Am I getting a reference to an automatic variable that way? o_O

Thank you!


原文:https://stackoverflow.com/questions/38980187
更新时间:2024-01-01 19:01

最满意答案

你做了一些调查,根据我的信息,WebTicket应该是UCWA可能的验证令牌。

不幸的是,此文档仍然正确,称UCWA目前仅支持在本地安装。 对于Lync Online / Office 365,它尚未启用。

Office用户语音上有一项功能请求,您可以进行投票和跟踪。 正如你可以阅读的那样,这里有很快公布

https://officespdev.uservoice.com/forums/224641-general/suggestions/5857717-ucwa-for-lync-365


you did quite some investigation, and based on my information the WebTicket should be a possible authentication token for UCWA.

Unfortunately, the documentation is still correct in saying UCWA is only supported for on-prem installation at this moment. For Lync Online / Office 365 it isn't enabled yet.

There's a feature request on Office's User Voice that you can vote and follow. As you can read there are announcements to be expected soon in this

https://officespdev.uservoice.com/forums/224641-general/suggestions/5857717-ucwa-for-lync-365

相关问答

更多
  • 很可能这种行为是由自定义脚本功能引起的,基本上当自定义脚本功能 关闭时会发生问题 如何验证? 您可以使用以下控制台应用验证网站权限: using (var ctx = GetContext(webUri, userName, password)) { var rootWeb = ctx.Site.RootWeb; ctx.Load(rootWeb, w => w.EffectiveBasePermissions); ctx.ExecuteQuery(); var permis ...
  • 如果您指的是联系人的位置属性,那么很可能在UCWA中,只要您可以获得该联系人的href( 资源联系人 )。 假设您可以简单地向其contactLocation(contactObj._links.contactLocation.href)发出附加(GET)请求,并且应该注意返回的位置将是该联系人在其最活跃设备上的位置(Lync客户端) ,浏览器,移动)。 If you are referring to the location property of a contact this is highly pos ...
  • 与UCWA的内部部署具体相关 端点ID只是一个字符串(' blablabla '是一个有效的端点ID),您不必在任何地方注册它。 信任通过Set-CsWebServiceConfiguration授予您的应用程序 是 我认为没有记录的限制,但应该遵循用户可以拥有的最大活动终端数量(包括登录的客户端)。 无论如何,就上述问题而言:如果您为同一个用户和相同的端点ID创建两个UCWA应用程序,您将收到冲突,并且一个应用程序将被终止 按照第一个答案:在这种情况下,端点ID只是任何有效的字符串,并且未在服务器的任何地 ...
  • Lync / Skype for Business客户端通过Outlook API发出请求以获取非联机会议事件以显示该数据。 您需要设计您的应用程序以登录其Outlook帐户,并使用可用的Outlook API获取Lync / Skype中不存在的所有会议/约会。 Lync/Skype for Business clients are making requests via Outlook APIs to grab non-online-meeting events to display that data ...
  • 你做了一些调查,根据我的信息,WebTicket应该是UCWA可能的验证令牌。 不幸的是,此文档仍然正确,称UCWA目前仅支持在本地安装。 对于Lync Online / Office 365,它尚未启用。 Office用户语音上有一项功能请求,您可以进行投票和跟踪。 正如你可以阅读的那样,这里有很快公布 https://officespdev.uservoice.com/forums/224641-general/suggestions/5857717-ucwa-for-lync-365 you did ...
  • 我怀疑你的问题是否适合SO,因为你似乎在询问如何安装已经制作的应用程序而不是开发所述应用程序。 如果我不对...... 显然不是; 但这并不让我感到惊讶。 另请注意,您提供的链接并未指定它与所提及程序的任何在线版本相关。 我打开了我的帐户,创建了一个空白工作表,并尝试添加一个应用程序。 首先要注意的是,功能区在线受限。 它甚至没有链接中显示的“Apps”部分。 所以我继续“在Excel中打开”,这将打开本地计算机上的文件。 Yahtzee,我可以添加应用程序。 也许您应该尝试在“主页”添加应用程序并在线打开 ...
  • 该解决方案是为多租户环境提供的,但是如果您必须在azure配置门户中将多租户环境设置为true,那么没有文档突出显示,是必须配置步骤还是可选配置? 对于多租户应用程序,将多租户设置为true是必须的配置。 The solution is provided for a multi tenant environment but no documentation highlights if you must set the multi tenant environment on true in the azure ...
  • ms_rtc_renew特定于匿名会议授权类型。 在同一文件中,它提到: 为经过身份验证的用户刷新令牌与获取新令牌的流程相同。 这是正确的思路,但它确实省略了一些关键信息。 如果您有兴趣保持原有的UCWA应用程序有效,则必须在应用程序上执行POST请求时提供相同的信息 ,否则将创建新的应用程序。 扩大的答案 当您到达UCWA应用程序返回404请求并指示当前OAuth令牌无效时,需要续订。 按照KeyTasks-CreateApplication的步骤,在步骤#5请求新令牌。 此时,获取新令牌并替换Autho ...
  • 考虑以下因素: 通常,Lync Server 2013 CU1及更高版本使用UCWA 1.0。*(Lync 2013 RTM没有UCWA),而Skype for Business Server 2015使用UCWA 2.0。* 在共存模式(Lync 2010和Skype for Business 2015)中,您必须将自动发现CNAME(Lyncdiscover。和LyncDiscoverinternal。)指向Skype for Business Server 2015池,以支持自定义UCWA 2.0应用 ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)