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 #1

Updated by Jörg Riesmeier about 13 years ago

  • Category set to Library
  • Assignee changed from Jörg Riesmeier to Uli Schlachter
  • Target version set to 3.6.2
  • Module set to dcmsr

Hmm, as far as I can see, I haven't changed the class structure in the last couple of years ...

Actions #2

Updated by Jan Schlamelcher about 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in commit a337a12dc8ab5d578a2d273632651d0fc9e8c3f9 by declarig both nested structs in concern friends of their parent class.

Actions #3

Updated by Jörg Riesmeier about 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF