using a private base template member

I

Ian Collins

Is there a using syntax for a template member of a private base class?

For example:

struct Base
{
template <typename T> operator<<( const T& );
};

struct Derived : private Base
{
// How to express this?
//
using Base::eek:perator<<;
}
 
M

Marcel Müller

Ian said:
Is there a using syntax for a template member of a private base class?

Correct the syntax errors and everything is fine.
For example:

struct Base
{
template <typename T> operator<<( const T& );

This line is invalid. The Function has no return type.
};

struct Derived : private Base
{
// How to express this?
//
using Base::eek:perator<<;
}

And here a semicolon is missing.


Marcel
 
I

Ian Collins

Correct the syntax errors and everything is fine.


This line is invalid. The Function has no return type.


And here a semicolon is missing.

Thank you for not answering the question.
 
I

Ian Collins

Please accept my apology for my last rather curt response, I didn't see
the line...
 

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
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top