Skip to content
Snippets Groups Projects
Commit 125bf9c7 authored by Michal Kravcenko's avatar Michal Kravcenko
Browse files

FIX: shared pointers were causing invalid frees in some examples

parent 82e6fafe
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ namespace lib4neuro {
LearningSequence::~LearningSequence() = default;
void LearningSequence::add_learning_method(std::shared_ptr<LearningMethod> method) {
void LearningSequence::add_learning_method(LearningMethod *method) {
this->learning_sequence.push_back(method);
}
......
......@@ -24,7 +24,7 @@ namespace lib4neuro {
/**
*
*/
std::vector<std::shared_ptr<LearningMethod>> learning_sequence;
std::vector<LearningMethod*> learning_sequence;
/**
*
......@@ -62,7 +62,7 @@ namespace lib4neuro {
*
* @param method
*/
LIB4NEURO_API void add_learning_method(std::shared_ptr<LearningMethod> method);
LIB4NEURO_API void add_learning_method(LearningMethod *method);
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment