[Fix] Fix Debian aarch64 cross compiling (#1806)

* fix debian cross compiling

* comment

* minor
pull/1855/head
Li Zhang 2023-03-03 12:41:52 +08:00 committed by GitHub
parent d95950d705
commit cb964f6a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ class Registry : public Registry<void> {
using Signature = GetSignature<Tag>;
using CreatorType = Creator<Signature>;
// workaround for gcc-10.2 (https://github.com/open-mmlab/mmdeploy/issues/1796)
Registry() : Registry<void>{} {}
bool Add(CreatorType& creator) & { return AddCreator(creator); }
CreatorType* Get(const string_view& name, int version) & {