Skip to content

Commit

Permalink
Merged Pull Request '#78 fix/cpp20-warning->main: Collection: fix C++…
Browse files Browse the repository at this point in the history
…20 warning'

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 authored Feb 5, 2025
1 parent fa1a298 commit 90ed458
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 90ed458

Please sign in to comment.