[Fix] Fix Debian aarch64 cross compiling ()

* fix debian cross compiling

* comment

* minor
pull/1935/head
Li Zhang 2023-03-03 12:41:52 +08:00 committed by Xin Chen
parent 0da1ed2311
commit c96967ffc1
1 changed files with 3 additions and 0 deletions
csrc/mmdeploy/core

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) & {