3 ms·
A third party can do that but if it doesn't also provide the source for fooBar, you won't be able to call it, making it fairly useless. http://www.open-std.org
by Someone 12y ago
A third party can do that but if it doesn't also provide the source for fooBar, you won't be able to call it, making it fairly useless.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3638.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n363...:
Of course, using such a function in an expression when
only a forward declaration has been seen is ill-formed:
auto f(); // return type is unknown
int i = f(); // error, return type of f is unknown
And https://isocpp.org/wiki/faq/cpp14-language#generalized-return https://isocpp.org/wiki/faq/cpp14-language#generalized-retur...:
Of course, this requires the function body to be visible.