|
From: | Michael Goffioul |
Subject: | Re: default constructor and class |
Date: | Mon, 8 Jul 2013 15:27:45 -0400 |
Hi all,
for the fem-fenics pkg I'm creating a new class, and I thus add as private members
DECLARE_OCTAVE_ALLOCATOR;
DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;
and also the DEFINE counterpart,
which requires the class to have a default constructor (right?)
The problem is that one of the parent class from which I derive my own class
doesn't provide a default constructor. Example
class B: public octave_base_value, public A
{
B(): octave_base_value(), A(), B() {} //error: A() not available
private:
A my_element;
DECLARE_OCTAVE_ALLOCATOR;
DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;
}
How can I manage it?
[Prev in Thread] | Current Thread | [Next in Thread] |