cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Seemingly simple problem I'm having...
Seemingly simple problem I'm having...
Apr 12, 2012 at 9:06pm UTC
PlacidPlatypus
(1)
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.
Apr 12, 2012 at 9:50pm UTC
ne555
(10692)
¿ Is this your scenario
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.16
?
Apr 13, 2012 at 5:57am UTC
buffbill
(467)
we can't do much without the code.
Topic archived. No new replies allowed.