{"id":13830860,"url":"https://github.com/LeenHawk/Professional-Cpp-5th-Answer","last_synced_at":"2025-07-09T12:34:21.391Z","repository":{"id":155105889,"uuid":"632468867","full_name":"LeenHawk/Professional-Cpp-5th-Answer","owner":"LeenHawk","description":"这是对于《Professional C++》第五版的一些自己做的答案（可能借鉴了一点点原书答案），采用MSVC最新支持的C++语法","archived":false,"fork":false,"pushed_at":"2023-10-20T06:55:27.000Z","size":131,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T10:13:49.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeenHawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T13:22:46.000Z","updated_at":"2024-01-29T14:41:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"86e7c27a-ccb4-4c11-8d05-1a46b0a64d1d","html_url":"https://github.com/LeenHawk/Professional-Cpp-5th-Answer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2FProfessional-Cpp-5th-Answer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2FProfessional-Cpp-5th-Answer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2FProfessional-Cpp-5th-Answer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2FProfessional-Cpp-5th-Answer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeenHawk","download_url":"https://codeload.github.com/LeenHawk/Professional-Cpp-5th-Answer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225553258,"owners_count":17487293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T10:01:10.742Z","updated_at":"2024-11-20T12:30:35.519Z","avatar_url":"https://github.com/LeenHawk.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Professional C++ 5th edition answer\n\n这是对于《Professional C++》第五版的一些自己做的答案（可能借鉴了一点点原书答案），采用MSVC最新支持的C++语法。\n\n## MSVC\n\n主要使用，均可运行。\n\n## GCC\n\n不支持\n\n## Clang\n\n简单测试，未完全覆盖，需要自行编译安装 libc++ module(libstdc++ 没有 module)。\n\n过程为：\n\n```shell\ngit clone https://github.com/llvm/llvm-project.git\ncd llvm-project\nmkdir build\ncmake -G Ninja -S runtimes -B build -DLIBCXX_ENABLE_STD_MODULES=ON -DLLVM_ENABLE_RUNTIMES=\"libcxx;libcxxabi;libunwind\"\nninja -C build\n```\n\n记 `build` 文件夹为 `\u003cbuild\u003e`\n\n\n编译指令为在项目同级文件夹输入（重点要给cmake指定`LIBCXX_BUILD`变量和编译器）:\n\n```shell\nmkdir build\ncmake -G Ninja -S . -B build -DCMAKE_CXX_COMPILER=\u003cpath-to-clang\u003e -DLIBCXX_BUILD=\u003cbuild\u003e\nninja -C build\nbuild/main\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeenHawk%2FProfessional-Cpp-5th-Answer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeenHawk%2FProfessional-Cpp-5th-Answer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeenHawk%2FProfessional-Cpp-5th-Answer/lists"}