明示的なテンプレートのインスタンス化でコードの重複を避けるためにdecltype()を使用できますか?無過負荷と</p> <pre><code>template <typename T> void foo(lots ofargs, goin here, andeven more, ofthese arguments, they just, dont stop); </code></pre> <p>:
は、私は長いテンプレート関数の宣言を持っています。私はそれを明示的にインスタンス化したいと思います。 template void foo<int>(lots ofargs, goin here, andeven more, ofthese arguments, they just, dont stop);
しかし、私は本当に長い宣言することをコピーしたくない:私は(= int Tのために言う)