Skip to content

Commit

Permalink
Collection: fix C++20 warning
Browse files Browse the repository at this point in the history
Newer GCC versions return the following warning for the changed lines:

```
error: template-id not allowed for destructor in C++20 [-Werror=template-id-cdtor]
note: remove the ‘< >’
```

This applies compiler's recommendation.
  • Loading branch information
pi-alexander-popel committed Feb 5, 2025
1 parent b8ee3df commit 81101f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Collection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace FiftyoneDegrees {
/**
* Dispose of any internal data.
*/
virtual ~Collection<K, V>() {};
virtual ~Collection() {};

/**
* @}
Expand Down Expand Up @@ -123,9 +123,9 @@ namespace FiftyoneDegrees {
/**
* A collection can't be constructed without an inheriting class.
*/
Collection<K, V>() { }
Collection() { }
};
}
}

#endif
#endif

0 comments on commit 81101f0

Please sign in to comment.