Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
4cfbfd57
Commit
4cfbfd57
authored
Oct 09, 2017
by
Simon Spannagel
Browse files
Adapt algorithm manager to call correct generator function
parent
39fd1ce6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/Analysis.C
View file @
4cfbfd57
...
...
@@ -215,10 +215,10 @@ Algorithm* Analysis::create_algorithm(void* library, Configuration config, Clipb
}
// Convert to correct generator function
auto
algorithm_generator
=
reinterpret_cast
<
Algorithm
*
(
*
)(
std
::
string
,
Configuration
,
Clipboard
*
)
>
(
generator
);
// NOLINT
auto
algorithm_generator
=
reinterpret_cast
<
Algorithm
*
(
*
)(
Configuration
,
Clipboard
*
)
>
(
generator
);
// NOLINT
// Build algorithm
Algorithm
*
algorithm
=
algorithm_generator
(
config
.
getName
(),
config
,
clipboard
);
Algorithm
*
algorithm
=
algorithm_generator
(
config
,
clipboard
);
// Return the algorithm to the analysis
return
algorithm
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment