c++ 模板类继承中unresolved externals问题

template <typename T>
class Father
{
public:
    Father() = default;

    ~Father() = default;

    void function();
};

class Child : Father<int>
{
public:
   Child();
     ~Child() = default;
}

Child::Child()
{
   function();    //报错
}
#include <iostream>

using namespace std;

template <typename T>
class Father
{
public:
    Father() = default;

    ~Father() = default;

    void function(){}
};

class Child : Father<int>
{
public:
   Child();
   ~Child() = default;
};

Child::Child()
{
   Father<int>::function();  
}

int main() {
    return 0;
}

问题解决的话,请点下采纳