Skip to content

Conversation

@ChanIok
Copy link
Owner

@ChanIok ChanIok commented Jun 14, 2025

改动目的

将项目从 C++17 升级到 C++23,引入模块化设计,重构代码以使用现代 C++ 特性,提高代码可读性、维护性和编译效率。

主要改动

  • 升级到 C++23,CMake 使用 3.30 版本,支持 import std;
  • 使用 C++23 新特性:如 std::expected,std::ranges,concepts 等
  • 全面模块化:将头文件(.hpp)替换为模块文件(.ixx)

备注

激进的改动,已知模块、 import std; 和 MSVC 潜在各种乱七八糟的问题

ChanIok added 30 commits June 15, 2025 02:47
ChanIok added 27 commits July 29, 2025 15:46
@ChanIok
Copy link
Owner Author

ChanIok commented Aug 18, 2025

经过大量工作,重构基本完成。
评价:模块系统是个坑,收益甚小,完全不值得花费如此大的投入。

@ChanIok ChanIok merged commit 16d0807 into master Aug 18, 2025
1 check passed
@ChanIok ChanIok deleted the dev3 branch August 18, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants