Skip to content

Commit

Permalink
incorrect suppress warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vano committed Jan 18, 2024
1 parent e2402d8 commit 0ef830f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/src/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,5 @@ class ExampleTemplated : public Object {
T get_number();
};

// To suppress warning: instantiation of variable 'ExampleTemplated<int>::_template_class_name' required here, but no definition is available [-Wundefined-var-template]
template <typename T>
const char *ExampleTemplated<T>::_template_class_name;

#endif // EXAMPLE_CLASS_H

0 comments on commit 0ef830f

Please sign in to comment.