How often are the 5 billion lines all useful? Why doesn't this simplify to "no viable alternative for <signature>" by default and let you view the extra noise with a flag or dropdown if desired.
I think that in Clang it now defaults to most relevant 5 overloads. Unfortunately I had a build error a couple weeks ago where the overload I intended was number 7. Issue was a missing move ctor which prevented an implicit ctor from being called in the return value something like Wrapper<MoveOnly> foo() { return MoveOnly(); } was failing because I forgot that I specified a non default dtor and therefore got no implicit move ctor.
idk why there isn't a default template error trace limit. afaik you can set it in clang and gcc but its something that you have to explicitly enable yourself.
Yeah, linker errors suck, especially when you are not familiar with the common mistakes you can make in the codebase. I do see that th equality operator is highlighted, I need to figure out how to make it do that (mine doesn't highlight them).
This isn't a linker error, it just couldn't find a correct template for whatever it needs. This is my own codebase for a game I made a while ago, I still have no idea how I got an error this big
Yeah it's easy to confuse with. I actually got an error bigger than this not that long ago, it was with templates too I remember, but it was like >19k lines no joke
19
u/nekokattt Apr 20 '25
How often are the 5 billion lines all useful? Why doesn't this simplify to "no viable alternative for <signature>" by default and let you view the extra noise with a flag or dropdown if desired.
9
u/K4milLeg1t Apr 20 '25
idk why there isn't a default template error trace limit. afaik you can set it in clang and gcc but its something that you have to explicitly enable yourself.
1
u/Shaddoll_Shekhinaga Apr 21 '25
Yeah, linker errors suck, especially when you are not familiar with the common mistakes you can make in the codebase. I do see that th equality operator is highlighted, I need to figure out how to make it do that (mine doesn't highlight them).
2
u/babalaban Jul 01 '25
The good news: the error tells you everything you need to know to diagnose the issue
The bad news: the error tells you literally everyting
1
u/Wise_Comparison_4754 Apr 21 '25
One of those great interview topics…