Seemingly simple problem I'm having...

I'm writing a program for my computer science lab, and the professor provided us with the header file that we were to write the source file for. However, when I try to compile it, I get an error on this line:

template <typename T> std::ostream& operator<<(std::ostream&, const tree_t<T>&);

The error says, "expected constructor, destructor, or type conversion before '&' token" and "expected ';' before '&' token."

This is at the top of the code. Anyone know what it is wrong here? I figured the code given to me by the professor would compile fine, but...

Thanks to any assistance you can give me.
we can't do much without the code.
Topic archived. No new replies allowed.