Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
問題は、TとUが同じということではなく、関数プロトタイプにV型に関する記述があることです。
T
U
V
VB を返すことを宣言し、戻り値の型を T()*U() として定義していることを考えると、どうあるmatrix<V>べきか疑問に思います。
matrix<V>
私は B と戻り値の型が でmatrix<decltype(declval<T>()*declval<U>())>、 V がないことを期待します (これはパラメーター リストに含まれるべきではありません)。
matrix<decltype(declval<T>()*declval<U>())>