DiscussionsIssue archiveOCCT:Foundation Classes

Archived issue #0029442

NCollection_Shared is unable to wrap classes without default constructor

Open CASCADEOCCT:Foundation Classesnew0 public notes

Search issues

Description

The current version of NCollection_Shared is unable to wrap classes without a default constructor.

Steps to reproduce

//OK
class _dummy
{
public:
  _dummy() {};
  ~_dummy() {};
};
NCollection_Shared<_dummy> _p;
----
//not OK; C2512 on VS compiler
class _dummy
{
public:
  _dummy(int a) {};
  ~_dummy() {};
};
NCollection_Shared<_dummy> _p;

Public activity

No public notes

Participants are labeled by their role within this record.

Related records