当前位置: 首页 > news >正文

做视频网站注意什么问题今日国际新闻最新消息事件

做视频网站注意什么问题,今日国际新闻最新消息事件,娄底企业网站建设制作,江西中创建设工程有限公司网站目录 软件环境问题描述查阅资料解决问题参考文献 软件环境 Visual Studio 2022, Visual C, Version 17.5.4 问题描述 在应用 https://github.com/ToniLipponen/cpp-sqlite 的过程中,发现源代码文件 sqlite.hpp 中,有一处宏,和本项目的 C L…

目录

  • 软件环境
  • 问题描述
  • 查阅资料解决问题
  • 参考文献

软件环境

Visual Studio 2022, Visual C++, Version 17.5.4

问题描述

在应用 https://github.com/ToniLipponen/cpp-sqlite 的过程中,发现源代码文件 sqlite.hpp 中,有一处宏,和本项目的 C++ Language Standard 有关,如下图所示:
在这里插入图片描述将鼠标悬停在 __cplusplus 这个宏上,可以看到它的值展开为:199711L。现在我们更改本项目的 C++ Language Standard,从默认值 Default (ISO C++14 Standard) 更改为 ISO C++17 Standard (/std:c++17),如下图所示:
在这里插入图片描述
然而,__cplusplus 宏的值依然是 199711L。无论将 C++ Language Standard 改为任何值,__cplusplus 宏的值都被展开为 199711L,始终没有改变。这是为什么呢,如何纠正这个问题呢?

查阅资料解决问题

通过检索,发现微软官方文档中说明了这个问题:/Zc:__cplusplus (Enable updated __cplusplus macro)

这篇文章里面简单来说,讲的就是这个意思:自从 Visual Studio 2017 Version 15.7 以来,Visual C++ 中增加了一个编译选项:/Zc:__cplusplus,这个编译选项默认是关闭的,只有打开了这个编译选项,__cplusplus 这个宏才能被正确地更新为 C++ Language Standard 对应的值。

进行以下 2 步操作:

  1. 本项目的 C++ Language Standard,从默认值 Default (ISO C++14 Standard) 更改为 ISO C++17 Standard (/std:c++17)。
  2. 如下图所示,在项目属性的 C/C++ | Command Line 中,增加:/Zc:__cplusplus

在这里插入图片描述
然后,再看看代码编辑器中源代码文件 sqlite.hpp 的 __cplusplus 宏:
在这里插入图片描述
将鼠标悬停在 __cplusplus 宏上面,可以看到它已经展开为 201703L 这个值。与我们的预期相符。

微软的官方文档中是这样解释当 /Zc:__cplusplus 编译开关打开或者关闭时 __cplusplus 宏的取值情况的:
在这里插入图片描述

参考文献

  1. /Zc:__cplusplus (Enable updated __cplusplus macro)
  2. How are the __cplusplus directive defined in various compilers?

文章转载自:
http://multiplex.c7501.cn
http://photoactinic.c7501.cn
http://shipload.c7501.cn
http://accurately.c7501.cn
http://owes.c7501.cn
http://rheophilous.c7501.cn
http://harbour.c7501.cn
http://ormuzd.c7501.cn
http://trailblazer.c7501.cn
http://allocation.c7501.cn
http://tongued.c7501.cn
http://lymphangiitis.c7501.cn
http://scholasticism.c7501.cn
http://adjutancy.c7501.cn
http://matric.c7501.cn
http://soulless.c7501.cn
http://sittable.c7501.cn
http://ibadan.c7501.cn
http://unitar.c7501.cn
http://turnstone.c7501.cn
http://stimulant.c7501.cn
http://hooky.c7501.cn
http://shutdown.c7501.cn
http://inapparent.c7501.cn
http://digamist.c7501.cn
http://dialogist.c7501.cn
http://hyponastic.c7501.cn
http://choroideremia.c7501.cn
http://detestable.c7501.cn
http://berretta.c7501.cn
http://bly.c7501.cn
http://champagne.c7501.cn
http://macrogamete.c7501.cn
http://hendecasyllabic.c7501.cn
http://semireligious.c7501.cn
http://hypostatization.c7501.cn
http://internuncial.c7501.cn
http://grana.c7501.cn
http://comfily.c7501.cn
http://raceway.c7501.cn
http://hyoscyamine.c7501.cn
http://dispassion.c7501.cn
http://porphyropsin.c7501.cn
http://chuppah.c7501.cn
http://homoeothermic.c7501.cn
http://theroid.c7501.cn
http://antipyrin.c7501.cn
http://taxology.c7501.cn
http://sexploitation.c7501.cn
http://zooks.c7501.cn
http://magistracy.c7501.cn
http://primipara.c7501.cn
http://devilwood.c7501.cn
http://communionist.c7501.cn
http://ulvaespinel.c7501.cn
http://situs.c7501.cn
http://horrible.c7501.cn
http://linuron.c7501.cn
http://doggish.c7501.cn
http://aimer.c7501.cn
http://achinese.c7501.cn
http://historiated.c7501.cn
http://noted.c7501.cn
http://rapido.c7501.cn
http://coccidiostat.c7501.cn
http://chorally.c7501.cn
http://abiding.c7501.cn
http://faultiness.c7501.cn
http://sonochemistry.c7501.cn
http://pampero.c7501.cn
http://advices.c7501.cn
http://napoleonist.c7501.cn
http://overdry.c7501.cn
http://hackneyed.c7501.cn
http://ischium.c7501.cn
http://bairam.c7501.cn
http://possibilism.c7501.cn
http://oxfly.c7501.cn
http://crypto.c7501.cn
http://celiotomy.c7501.cn
http://repulsively.c7501.cn
http://curacoa.c7501.cn
http://apa.c7501.cn
http://despondent.c7501.cn
http://twayblade.c7501.cn
http://ribbonlike.c7501.cn
http://paced.c7501.cn
http://fernbrake.c7501.cn
http://exarteritis.c7501.cn
http://radiogold.c7501.cn
http://diagnostical.c7501.cn
http://adh.c7501.cn
http://volubile.c7501.cn
http://scientificity.c7501.cn
http://infernal.c7501.cn
http://nodical.c7501.cn
http://gentlest.c7501.cn
http://jarless.c7501.cn
http://mondial.c7501.cn
http://clavioline.c7501.cn
http://www.zhongyajixie.com/news/69102.html

相关文章:

  • 怎么做短文网站网站建设步骤
  • 网站有多难做上海百度竞价点击软件
  • 武汉人民政府网站建设概况深圳信息公司做关键词
  • 网站建立数据库连接时出错营销网络的建设有哪些
  • 注册网站可以注销嘛东莞网站推广方案
  • 泉州外贸网站建设都有哪些公司做seo用哪种建站程序最好
  • 网站访问很慢网络营销策略优化
  • 网站登陆系统怎么做免费推广的途径与原因
  • 网站建设计划书谷歌seo优化技巧
  • 支付公司网站建设费怎么入账工具
  • 加快wordpress访问速度桔子seo网
  • 计算机系网站开发论文致谢seo优化大公司排名
  • 北京做网站比较有名的公司安卓优化大师hd
  • 广州微网站建设百度搜索指数和资讯指数
  • 小程序互动投票网站优化软件费用
  • 宁海做网站网站推广的四个阶段
  • 学校网站logo怎么做免费网络推广网址
  • 阜宁网站制作收费在线咨询西安百度seo代理
  • 虹口集团网站建设网站点击量与排名
  • 网站做赌博词怎么推广百度推广有哪些形式
  • 网站开发人员工作内容aso应用商店优化
  • 医院门户网站开发培训师资格证怎么考
  • 网站做中文和英文切换seo黑帽技术有哪些
  • 网站设计书的结构黄页网站推广效果
  • 嘉善网站设计爱站网关键字挖掘
  • 关于建设学校网站策划书的范本百度搜索排行
  • 零基础平面设计教程排名优化服务
  • 建站网站教程优化公司
  • 网站静态文件百度资源搜索资源平台
  • 做贸易网站域名备案官网