C++26 Reflections adventures and compile time UML
from 耳で聞くHacker News
C++26のリフレクションを使って、コンパイル時にクラスのUML図を生成する試み。`^^`演算子で型情報をメタ空間に「持ち上げ」、`[: :]`で元の空間に戻す。`std::define_static_string`でコンパイル時のstd::stringを文字列リテラル化。`std::meta::info`型で型と値を区別し、`std::meta::nonstatic_data_members_of`や`display_string_of`でメンバー情報を取得。`remove_ptr_cv_type_of`でポインタやconst/volatileを無視。
Embed this episode
No transcript yet.
Frequently asked questions
When was this 耳で聞くHacker News episode published?
This episode was published on August 2, 2025.
Can I download this 耳で聞くHacker News episode?
Yes. Use the download control on the episode player to save the publisher-provided media file.