関数内に文字列ベクトルを作成し、ヒープにメモリを割り当てたいと考えています。このために私は使用しています
vector<string>* residuetable = new vector<string>();
私がやろうとすると
&residuetable.push_back(modulo((exponentiate("2", exponent02)), modulus));
つまり、 push_back関数を使用して、複数の関数呼び出しからの戻り値をベクターに追加しようとすると、コンパイル時エラーが発生します。
request for member 'push_back' in 'residuetable', which is of non-class type 'std::vector<std::string, std::allocator<std::string> >*
この問題を解決し、ヒープに割り当てられたベクトルの最後に関数呼び出しの結果を追加するにはどうすればよいですか?