View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000034 | OpenFOAM | Bug | public | 2010-09-10 15:44 | 2010-09-13 17:36 |
Reporter | Assigned To | henry | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Fedora | OS Version | 13 |
Summary | 0000034: Request for member ‘write’ is ambiguous for an IOdictionary | ||||
Description | The write() member function for an IOdictionary is inherited from both regIOobject and dictionary. Do you consider these to be bugs? Obviously the user can use the full namespace. For example: testDictionary.Foam::regIOobject::write(); testDictionary.Foam::dictionary::write(Info,false); | ||||
Steps To Reproduce | IOdictionary testDictionary ( IOobject ( "testDictionary", runTime.time().constant(), runTime, IOobject::MUST_READ, IOobject::NO_WRITE ) ); testDictionary.write(); Compiling the above gives the error: error: request for member ‘write’ is ambiguous candidates are: void Foam::dictionary::write(Foam::Ostream&, bool) const virtual bool Foam::regIOobject::write() const | ||||
Tags | Input/output | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2010-09-10 15:44 |
|
New Issue | |
2010-09-10 15:50 |
|
Assigned To | => henry |
2010-09-10 15:50 |
|
Status | new => assigned |
2010-09-11 12:06 | henry | Note Added: 0000033 | |
2010-09-11 12:06 | henry | Status | assigned => resolved |
2010-09-11 12:06 | henry | Resolution | open => fixed |
2010-09-13 17:36 |
|
Tag Attached: Input/output |