テンソルビューでtensor_ref<A>::result
を表示しようとしています。C++、テンプレートネストされたクラスを継承する
template<class A, class Range, class = void>
struct tensor_view
: detail::tensor_ref<A>,
const_tensor_view<A, Range, tensor_view<A, Range> >
{
using detail::tensor_ref<A>::result;
...
template<class A>
struct tensor_ref<A, typename same_rank<A,N>::enable>
: const_tensor_ref<A>
{
template<class I>
struct result {
typedef typename traits<A>::reference type;
};
error: no class template named "result" in "struct tensor::tensor_view<...
できますか?
私たちが必要とするコードの大部分が欠落しているので、カットアンドペーストのスニペットは時間の無駄です。教育的な推測よりも多くの推測を望むなら、完全なエラーメッセージを含むコンパイル可能なコードを与えます。英語のテキストは素晴らしいかもしれませんが、それは本当にあなたのためだけです。私たちの残りの部分は、コンパイラの使用に堪能です。 –
型:: tenor_ref :: resultのオブジェクトを宣言しようとしましたが、代わりに? – DumbCoder
@Martinそう簡単ではありません。テンプレートは4つのファイルにまたがり、静かに大きくなっています。 – Anycorn