在我的主要方法中有以下代码:
int main(int argc, char* argv[])
{
    Color c1(10,1,2); 
    HSL h=convertToHSL(c1);
    return 0;
}
使用以下 convertToHSL 方法:
HSL convertToHSL(Color const& c) {
   return HSL(0,0,0);
}
我的项目中出现构建错误。颜色是一个定义如下的类:
Color::Color(){}
Color::Color(float r,float g,float b){
    this->r=r;
    this->g=g;
    this->b=b;
}
Color::~Color(void){}
HSL 定义如下:
 HSL::HSL() {}
HSL::HSL(float h,float s,float l) {
    this->h=h;
    this->s=s;
    this->l=l;
}
HSL::~HSL(void){}
使用我已经提到的 convertToHSL 方法。
什么可能是错的?