Use C++20 concepts to require constraints on template parameters (#1977)

This commit is contained in:
Rangi
2026-05-22 17:54:34 -04:00
committed by GitHub
parent 728bed39d5
commit dce14fd4b8
12 changed files with 64 additions and 27 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
#include "helpers.hpp" // QualifiedEquivalent
#include "linkdefs.hpp"
struct FileStackNode;
@@ -52,7 +53,7 @@ struct Section {
private:
// Template class for both const and non-const iterators over the "pieces" of this section
template<typename SectionT>
template<QualifiedEquivalent<Section> SectionT>
class PiecesIterable {
SectionT *_firstPiece;