docs/程序语言/C++/现代C++/源码阅读/雅兰亭库/C++无宏反射研究/细节研究 #16
Replies: 1 comment 7 replies
-
|
哥哥, 有空实验一下: template <typename T, typename U, typename... Args>
constexpr bool IsConstructibleVal = requires {
T {Args{Args{}}..., U{U{}}};
};似乎没有那么稀烂... 而且和: template <typename T, typename U, typename... Args>
constexpr bool IsConstructibleVal = requires {
T {{Args{}}..., {U{}}};
};的效果在极个别情况不同! |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
docs/程序语言/C++/现代C++/源码阅读/雅兰亭库/C++无宏反射研究/细节研究
一、判断成员个数
https://hengxin666.github.io/HXLoLi/docs/%E7%A8%8B%E5%BA%8F%E8%AF%AD%E8%A8%80/C++/%E7%8E%B0%E4%BB%A3C++/%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/%E9%9B%85%E5%85%B0%E4%BA%AD%E5%BA%93/C++%E6%97%A0%E5%AE%8F%E5%8F%8D%E5%B0%84%E7%A0%94%E7%A9%B6/%E7%BB%86%E8%8A%82%E7%A0%94%E7%A9%B6
Beta Was this translation helpful? Give feedback.
All reactions