Skip to content
Discussion options

You must be logged in to vote

This is one the key differences between generics and templates.

In a generic type system, the compiler must be able to prove type match before specializing the generics. In this specific case, there is no way for the compiler to know how many elements your args will expand to, and therefore will not be able to match that call to any float3() constructors.

Therefore this error is correct compiler behavior, not a bug.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@williamhCode
Comment options

Answer selected by williamhCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants