template parse error

  • Thread starter David M Noriega
  • Start date
D

David M Noriega

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?
 
M

Mike Wahler

David M Noriega said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top