error: redefinition of ‘template<class auto:8>
I am trying to compile a working software available over github and built successfully for many users,
here is the code in header file:
1 2 3 4 5 6 7 8 9 10
|
auto vx(auto &p) -> decltype((p.vx))
{
return p.vx;
}
auto vx(auto &p) -> decltype(p.vel, (x(p.vel)))
{
return x(p.vel);
}
|
The above code is causing the error:
error: redefinition of ‘template<class auto:8> auto:8 vx(auto:8&)’
How do we resolve this error?
How do we resolve this error? |
Upgrade your compiler.
Topic archived. No new replies allowed.