例如
Select position.id, firstname, lastname, 'cook' AS position
FROM position LEFT JOIN people ON position.cook = people.id
UNION
Select position.id, firstname, lastname, 'teacher' AS position
FROM position LEFT JOIN people ON position.teacher = people.id
UNION
...
我能做到
struct Option_1
{
template<class T> using Vector = std::vector<T>;
};
但我更喜欢以下
typename Option_1::Vector<int> v;
或没有单词“typename”的类似物。我定义了一个别名
Vector<Option_1, int> v;
但因无法识别的模板声明/定义而失败。如何解决?