C++中编写物理公式 2026-04-03 | programming | #C++ #template-metaprogramming #mpl #type-safety #dimensional-analysis C++ 模板元编程实战:使用 MPL 实现物理量纲检查,编译期类型安全保证