Skip to content

Commit

Permalink
Fixed C++20 issue with template id in constructor starting in gcc 11 (#…
Browse files Browse the repository at this point in the history
…1015)

- See [C++20 DR 2237](https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237)
- Only made error starting in gcc 11
- gcc 14 switches to a warning `-Wtemplate-id-cdtor`
- EbsdLib also had this issue which 1.0.30 resolves

Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Jul 10, 2024
1 parent 31406a4 commit c62fa7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ template <class T>
class TSpecificCompareFunctor : public SegmentFeatures::CompareFunctor
{
public:
CX_DEFAULT_CONSTRUCTORS(TSpecificCompareFunctor<T>)
CX_DEFAULT_CONSTRUCTORS(TSpecificCompareFunctor)

using DataArrayType = DataArray<T>;
using DataStoreType = AbstractDataStore<T>;
Expand Down
2 changes: 1 addition & 1 deletion vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"zlib",
"zstd"
],
"baseline": "e2836a9d0b7a26d5063b5e5a51a1b10b1246f4e8"
"baseline": "ed3fc6a2a4acac755b8006db8752496c585b830c"
}
]
}

0 comments on commit c62fa7f

Please sign in to comment.