Hi!
I have a situation where I need to first declare a function template before defining it later on.
But when trying to inject the definition, instead of associating it to the declaration it handles it as a new function, causing subsequent calls to be "ambiguous".
minimal example:
template<class T>
void func();
consteval -> fragment namespace {
template<class T>
void func() {}
};
int main() {
func<int>(); // ambigous
}
godbolt link: https://godbolt.org/z/Tfrddzz53
Thanks in advance ^^
Hi!
I have a situation where I need to first declare a function template before defining it later on.
But when trying to inject the definition, instead of associating it to the declaration it handles it as a new function, causing subsequent calls to be "ambiguous".
minimal example:
godbolt link: https://godbolt.org/z/Tfrddzz53
Thanks in advance ^^