Skip to content

Commit

Permalink
Add explicit specialization of the base class to module.cpp (#661)
Browse files Browse the repository at this point in the history
# Explicit specialization of the base class in `module.cpp`

Fixes #657

# Change Description

Add a line to `module_builder.py` to explicitly instantiate the
templated `Module` class within the `module.cpp` source file.

---
# Test Description

The Release build successfully links all tests on MacOS/clang++.
  • Loading branch information
timspainNERSC authored Aug 23, 2024
2 parents 3c9863e + 25b1ff1 commit a3a2fc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/module_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def write_source_file(source, config, strings):
{{
addToConfiguredModules<{strings[class_name]}, {strings[module_class_name]}>();
}}
template class {module_templ};
""")
source.write("""
} /* namespace Module */
Expand Down

0 comments on commit a3a2fc3

Please # to comment.