How can I check whether specific type typename T
is constructible from arguments typename ...Args
in the manner T{Args...}
? I aware of std::is_constructible< T, Args... >
type trait from <type_traits>
, but it works with parentheses, not curly braces. I do not have too much experience in writing of type traits, so I cannot provide initial example. As simplification we can accept any reasonable assertions, even if this leads to not too significant loss of generality.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…