use typename keyword instead of class as it's more logical
This commit is contained in:
@@ -29,12 +29,12 @@ namespace Display
|
||||
{
|
||||
std::string Columns(std::string);
|
||||
|
||||
template <class T> void Generic(const T &t, void *, Menu<T> *menu)
|
||||
template <typename T> void Generic(const T &t, void *, Menu<T> *menu)
|
||||
{
|
||||
*menu << t;
|
||||
}
|
||||
|
||||
template <class A, class B> void Pairs(const std::pair<A, B> &pair, void *, Menu< std::pair<A, B> > *menu)
|
||||
template <typename A, typename B> void Pairs(const std::pair<A, B> &pair, void *, Menu< std::pair<A, B> > *menu)
|
||||
{
|
||||
*menu << pair.first;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user