d2mcpp
d2mcpp copied to clipboard
D2X | Modern C++ Core Language Features - "A C++ tutorial project focused on practical"
报错: ✗ cpp11-06-scoped-enums-1 + → \dslings\en\cpp11\06-scoped-enums-1.cpp [ 23%]: cache compiling.release dslings\en\cpp11\06-scoped-enums-1.cpp error: dslings\en\cpp11\06-scoped-enums-1.cpp:52:26: error: found ':' in nested-name-specifier, expected '::' 52 | enum class Color8Bit : int8_t { | ^...
The header tables and the exercise topic lists in `book/src/cpp11/17-pod-type.md` and `book/en/src/cpp11/17-pod-type.md` are missing clickable links to the exercise code—the file names are listed, but there’s no GitHub URL, just...
- 任务要求及规范见 #13 - 任务成果 - 添加新章节: `book/src/cpp11/xx-xxx-xxx.md` - 修改目录: `book/src/SUMMARY.md` - 新建练习代码: `dslings/cpp11/xx-xxx-xxx-x.cpp` - 配置: `dslings/cpp11/xmake.lua` - 参考: https://cppreference.com/w/cpp/language/union.html
- 讨论贴: https://forum.d2learn.org/topic/145 - https://github.com/mcpp-community/d2mcpp/issues/35 --- non-constexpr function 'operator[]' cannot be used in a constant expression **en版本** https://github.com/mcpp-community/d2mcpp/blob/fc4931ab75047c40ec314ef582f124996b9faa07/dslings/en/cpp11/xmake.lua#L92-L95 **zh版本** https://github.com/mcpp-community/d2mcpp/blob/fc4931ab75047c40ec314ef582f124996b9faa07/dslings/cpp11/xmake.lua#L92-L95
``` oot@0bf4d85e44eb:~/pg# curl -fsSL https://d2learn.org/xlings-install.sh | bash __ __ _ _ \ \ / / | | (_) pre-v0.0.4 \ V / | | _ _ __ __ _ ___...
- 任务要求及规范见 #13 - 任务成果 - 添加新章节: `book/src/cpp11/xx-xxx-xxx.md` - 修改目录: `book/src/SUMMARY.md` - 新建练习代码: `dslings/cpp11/xx-xxx-xxx-x.cpp` - 配置: `dslings/cpp11/xmake.lua` - 参考: https://cppreference.com/w/cpp/named_req/PODType.html --- This type requirement is deprecated in the C++ standard....
测试环境: - 操作系统: arch linux - 编译器: gcc version 15.2.1 20251112 (GCC) & clang version 21.1.6 在学习这一节的时候, 关于 `constexpr std::string` 的部分遇到了一些困难, 想寻求一下帮助和指教. 按照 [LiteralType](https://en.cppreference.com/w/cpp/named_req/LiteralType.html) 的描述, 如果是一个 class type, 必须有一个 constexpr...
在win环境下执行xlings checker 00-auto 或者是xlings checker 会报错为:error: wait events in poller failed! error: execv(xmake xlings --project=. E:\Desktop\mcpp-standard checker 00-auto) failed(-1) 并且当编写 vscode的时候会显示无法写入 我认为是程序占用了
RT, 这一关目前可以直接通过. 翻了下文件历史, 看起来 `A::func1` 在最初版本里有一个错误的 final, 后面添加 `struct C` 的时候一并移除了. https://github.com/mcpp-community/d2mcpp/blob/main/dslings/cpp11/02-final-and-override-1.cpp