Project

General

Profile

Actions

Bug #431

closed

dcmsr does not build with MSC6

Added by Uli Schlachter about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
Uli Schlachter
Category:
Library
Target version:
Start date:
2012-07-16
Due date:
% Done:

100%

Estimated time:
Module:
dcmsr
Operating System:
Compiler:

Description

Error message goes something like this:

dsrsoprf.cxx(316) : error C2248: 'InstanceStruct' : cannot access protected struct declared in class 'DSRSOPInstanceReferenceList'
dsrsoprf.h(323) : see declaration of 'InstanceStruct'

Similar errors happen at other places, also for SeriesStruct.

It seems like MSC6 does not allow sub-classes to access protected members of its parent class:

class A
{
protected:
  class B { public: B(); };
  class C { void foo() { B b; }; }; // Error, B is protected in A
  };
}
Actions

Also available in: Atom PDF