fix template forward + using
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9fd354cf16
commit
d9b9f27ec6
3 changed files with 19 additions and 5 deletions
|
|
@ -32,12 +32,14 @@ namespace foo {
|
|||
// Class Describable
|
||||
class Describable {
|
||||
public:
|
||||
void describe() {}
|
||||
};
|
||||
|
||||
// Class LinearOpBase
|
||||
template<class RangeScalar, class DomainScalar>
|
||||
class LinearOpBase : virtual public Describable {
|
||||
public:
|
||||
|
||||
}; // end class LinearOpBase<RangeScalar,DomainScalar>
|
||||
|
||||
// Class VectorBase
|
||||
|
|
@ -45,6 +47,7 @@ namespace foo {
|
|||
class VectorBase : virtual public LinearOpBase<Scalar>
|
||||
{
|
||||
public:
|
||||
using LinearOpBase<Scalar>::describe;
|
||||
}; // end class VectorBase<Scalar>
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue