考虑
template<typename T>
struct auxiliary
{
typedef std::unique_ptr<T> (*creator)(std::vector<double>const&);
};
template<typename T>
using creator = typename auxiliary<T>::creator;
我想知道如何在没有creator
的情况下声明auxiliary
,即
template<typename T>
using creator = ???
答案 0 :(得分:2)
template<typename T>
using creator = std::unique_ptr<T> (*)(std::vector<double> const&);