By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,332 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,332 IT Pros & Developers. It's quick & easy.

template parse error

P: n/a
Ok I'm no programmer but have done it in the past. I am trying to build
a program from its source, its called Juk. It needs the kde bindings for
GStreamer. I found them using CVS. So no I must build that. When doing
so I get a parse error before token '>' for smartptr.h The line reads

template <class T = Object>

I've looked all around and I only can find template being used without
the = Object part. And when I try removing that part, I get a whole
list of errors from other files, they depend on smartptr.h Any idea as
to why this give me a parse error?

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"David M Noriega" <Th**********@softhome.net> wrote in message
news:7n****************@twister.austin.rr.com...
Ok I'm no programmer but have done it in the past. I am trying to build
a program from its source, its called Juk. It needs the kde bindings for
GStreamer. I found them using CVS. So no I must build that. When doing
so I get a parse error before token '>' for smartptr.h The line reads

template <class T = Object>

I've looked all around and I only can find template being used without
the = Object part.
It's a default template parameter, indicating that if no
template argument is specified at instantiation, to instantiate
with type 'T' meaning type 'Object'.
And when I try removing that part, I get a whole
list of errors from other files, they depend on smartptr.h Any idea as
to why this give me a parse error?


Perhaps there's no identifier 'Object' in scope at
that point?

-Mike
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.