File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
lldb/source/Plugins/TypeSystem/Clang Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -342,10 +342,27 @@ class TypeSystemClang : public TypeSystem {
342
342
assert (names.size () == args_in.size ());
343
343
}
344
344
345
- TemplateParameterInfos (TemplateParameterInfos const &) = delete ;
346
345
TemplateParameterInfos (TemplateParameterInfos &&) = delete ;
347
346
348
- TemplateParameterInfos &operator =(TemplateParameterInfos const &) = delete ;
347
+ TemplateParameterInfos (const TemplateParameterInfos &o)
348
+ : names(o.names), args(o.args), pack_name(o.pack_name) {
349
+ if (o.packed_args )
350
+ packed_args = std::make_unique<TemplateParameterInfos>(*o.packed_args );
351
+ }
352
+
353
+ TemplateParameterInfos &operator =(const TemplateParameterInfos &o) {
354
+ auto tmp = TemplateParameterInfos (o);
355
+ swap (tmp);
356
+ return *this ;
357
+ }
358
+
359
+ void swap (TemplateParameterInfos &other) noexcept {
360
+ std::swap (names, other.names );
361
+ std::swap (args, other.args );
362
+ std::swap (pack_name, other.pack_name );
363
+ std::swap (packed_args, other.packed_args );
364
+ }
365
+
349
366
TemplateParameterInfos &operator =(TemplateParameterInfos &&) = delete ;
350
367
351
368
~TemplateParameterInfos () = default ;
You can’t perform that action at this time.
0 commit comments