We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ba869 commit c2297bbCopy full SHA for c2297bb
src/auxiliary/TemplateFile.cpp
@@ -16,13 +16,14 @@ namespace
16
{
17
template <typename T>
18
static void
19
- call(Attributable &object, std::string const &name, Attribute attr)
+ call(Attributable &object, std::string const &name, Attribute &attr)
20
21
object.setAttribute(name, attr.get<T>());
22
}
23
24
template <unsigned n>
25
- static void call(Attributable &, std::string const &name, Attribute)
+ static void
26
+ call(Attributable &, std::string const &name, Attribute const &)
27
28
std::cerr << "Unknown datatype for template attribute '" << name
29
<< "'. Will skip it." << std::endl;
0 commit comments