S
Shea Martin
What is the signature for my GetPair function supposed to look like?
template<int Z>
class Test
{
public:
struct Pair
{
int x;
int y;
};
Pair GetPair() const;
private:
Pair p;
};
template<int Z>
Test<Z>:air Test<Z>::GetPair() const //does not compile
{
return p;
}
template<int Z>
class Test
{
public:
struct Pair
{
int x;
int y;
};
Pair GetPair() const;
private:
Pair p;
};
template<int Z>
Test<Z>:air Test<Z>::GetPair() const //does not compile
{
return p;
}