C++ error: class does not have a copy-constructor

112 views
Skip to first unread message

RKCpp

unread,
Apr 24, 2016, 1:49:38 PM4/24/16
to Accord.NET Framework
I am trying to use LogisticRegressionAnalysis from within my VC++ program. I am using VisualStudio 2010, MFC Application with /cls for compiling.

The code:

array<array<double>^>^ independents = {gcnew array<double>{0, 0}, gcnew array<double>{0, 1}};

array<double>^ dependent = gcnew array<double>(10);

LogisticRegressionAnalysis xLra = gcnew LogisticRegressionAnalysis(independents, dependent);


The error message is


error C3673: 'Accord::Statistics::Analysis::LogisticRegressionAnalysis' : class does not have a copy-constructor


Any hint will be greatly appreciated.


César

unread,
Sep 17, 2016, 1:12:16 PM9/17/16
to Accord.NET Framework
I suppose the problem might be that you are missing a ^ in LogisticRegressionAnalysis. It should probably have been:

    LogisticRegressionAnalysis^ xLra = gcnew LogisticRegressionAnalysis^(independents, dependent);

Regards,
Cesar
Reply all
Reply to author
Forward
0 new messages