| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:ec8fe131-f25e-ea2d-b6f1-e48a10c9a377 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | EBCA:27FBAD:47AEE8:61F824:6B00706A |
| html-safe-nonce | ba4914ae8b7c137516fa4238aef33ee1f81f159e3443d4d864931abdf2bec06d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkNBOjI3RkJBRDo0N0FFRTg6NjFGODI0OjZCMDA3MDZBIiwidmlzaXRvcl9pZCI6Ijg4OTUyNzY3ODUzNzQwOTc1MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e90ca057a7404988a74e67b4f7169af9853bafc4fdc0f4bd48cb39c52a053f4 |
| hovercard-subject-tag | repository:260737940 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas |
| twitter:image | https://opengraph.githubassets.com/4d210c3668527eb63dd30b0520d8e29ce1c5a07142f1cbf2d996f90b27427fee/PS2U/TechNote |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d210c3668527eb63dd30b0520d8e29ce1c5a07142f1cbf2d996f90b27427fee/PS2U/TechNote |
| og:image:alt | 技术学习笔记. Contribute to PS2U/TechNote development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-cache |
| go-import | github.com/PS2U/TechNote git https://github.com/PS2U/TechNote.git |
| octolytics-dimension-user_id | 5598773 |
| octolytics-dimension-user_login | PS2U |
| octolytics-dimension-repository_id | 260737940 |
| octolytics-dimension-repository_nwo | PS2U/TechNote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 72006827 |
| octolytics-dimension-repository_parent_nwo | xgugeng/dev-notes |
| octolytics-dimension-repository_network_root_id | 72006827 |
| octolytics-dimension-repository_network_root_nwo | xgugeng/dev-notes |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPS2U%2FTechNote%2Ftree%2Fmaster%2Fcpp%2Fcpp-gotchas |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPS2U%2FTechNote%2Ftree%2Fmaster%2Fcpp%2Fcpp-gotchas |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=PS2U%2FTechNote |
| Reload | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas |
| Reload | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas |
| Reload | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas |
| PS2U | https://github.com/PS2U |
| TechNote | https://github.com/PS2U/TechNote |
| Code | https://github.com/PS2U/TechNote |
| Pull requests | https://github.com/PS2U/TechNote/pulls |
| Actions | https://github.com/PS2U/TechNote/actions |
| Projects | https://github.com/PS2U/TechNote/projects |
| Security and quality | https://github.com/PS2U/TechNote/security |
| Insights | https://github.com/PS2U/TechNote/pulse |
| https://github.com/PS2U/TechNote |
| TechNote | https://github.com/PS2U/TechNote/tree/master |
| cpp | https://github.com/PS2U/TechNote/tree/master/cpp |
| History | https://github.com/PS2U/TechNote/commits/master/cpp/cpp-gotchas |
| https://github.com/PS2U/TechNote/commits/master/cpp/cpp-gotchas |
| TechNote | https://github.com/PS2U/TechNote/tree/master |
| cpp | https://github.com/PS2U/TechNote/tree/master/cpp |
| .. | https://github.com/PS2U/TechNote/tree/master/cpp |
| img | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas/img |
| img | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas/img |
| README.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/README.md |
| README.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/README.md |
| 内存和资源管理问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%86%85%E5%AD%98%E5%92%8C%E8%B5%84%E6%BA%90%E7%AE%A1%E7%90%86%E9%97%AE%E9%A2%98.md |
| 内存和资源管理问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%86%85%E5%AD%98%E5%92%8C%E8%B5%84%E6%BA%90%E7%AE%A1%E7%90%86%E9%97%AE%E9%A2%98.md |
| 初始化问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%88%9D%E5%A7%8B%E5%8C%96%E9%97%AE%E9%A2%98.md |
| 初始化问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%88%9D%E5%A7%8B%E5%8C%96%E9%97%AE%E9%A2%98.md |
| 基础问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%9F%BA%E7%A1%80%E9%97%AE%E9%A2%98.md |
| 基础问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%9F%BA%E7%A1%80%E9%97%AE%E9%A2%98.md |
| 多态问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%A4%9A%E6%80%81%E9%97%AE%E9%A2%98.md |
| 多态问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%A4%9A%E6%80%81%E9%97%AE%E9%A2%98.md |
| 类型设计问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
| 类型设计问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
| 类型转换问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2%E9%97%AE%E9%A2%98.md |
| 类型转换问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2%E9%97%AE%E9%A2%98.md |
| 继承谱系设计问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%BB%A7%E6%89%BF%E8%B0%B1%E7%B3%BB%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
| 继承谱系设计问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%BB%A7%E6%89%BF%E8%B0%B1%E7%B3%BB%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
| 语法问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E8%AF%AD%E6%B3%95%E9%97%AE%E9%A2%98.md |
| 语法问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E8%AF%AD%E6%B3%95%E9%97%AE%E9%A2%98.md |
| 预处理器问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E9%97%AE%E9%A2%98.md |
| 预处理器问题.md | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E9%97%AE%E9%A2%98.md |
| README.md | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas#readme |
| DocToc | https://github.com/thlorenz/doctoc |
| 目录 | https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas#%E7%9B%AE%E5%BD%95 |
| 《C++语言99个常见编程错误》 | https://book.douban.com/subject/3767699/ |
| https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/img/cover.jpg |
| https://github.com/PS2U/TechNote/tree/master/cpp/cpp-gotchas#目录 |
| 1. 基础问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%9F%BA%E7%A1%80%E9%97%AE%E9%A2%98.md |
| 2. 语法问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E8%AF%AD%E6%B3%95%E9%97%AE%E9%A2%98.md |
| 3. 预处理器问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E9%97%AE%E9%A2%98.md |
| 4. 类型转换问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2%E9%97%AE%E9%A2%98.md |
| 5. 初始化问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%88%9D%E5%A7%8B%E5%8C%96%E9%97%AE%E9%A2%98.md |
| 6. 内存和资源管理问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%86%85%E5%AD%98%E5%92%8C%E8%B5%84%E6%BA%90%E7%AE%A1%E7%90%86%E9%97%AE%E9%A2%98.md |
| 7. 多态问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E5%A4%9A%E6%80%81%E9%97%AE%E9%A2%98.md |
| 8. 类型设计问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%B1%BB%E5%9E%8B%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
| 9. 继承谱系设计问题 | https://github.com/PS2U/TechNote/blob/master/cpp/cpp-gotchas/%E7%BB%A7%E6%89%BF%E8%B0%B1%E7%B3%BB%E8%AE%BE%E8%AE%A1%E9%97%AE%E9%A2%98.md |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |