diff options
| author | Tyge Løvset <[email protected]> | 2021-01-03 10:50:41 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-01-03 10:50:41 +0100 |
| commit | e4c1dadb85e08d88fbc706e49a5d2b18b39fe0ed (patch) | |
| tree | 731d91462d450fb848dd9125efdc8dc77c68d730 /examples/share_ptr.c | |
| parent | 949c6b61cae7bb4665f47a6f27375dd450a23854 (diff) | |
| download | STC-modified-e4c1dadb85e08d88fbc706e49a5d2b18b39fe0ed.tar.gz STC-modified-e4c1dadb85e08d88fbc706e49a5d2b18b39fe0ed.zip | |
Force template argument *clone* to be specified when *del* is specified for containers. Can be *c_no_clone* if clonable is not required.
Diffstat (limited to 'examples/share_ptr.c')
| -rw-r--r-- | examples/share_ptr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/share_ptr.c b/examples/share_ptr.c index 18739d29..9387bd61 100644 --- a/examples/share_ptr.c +++ b/examples/share_ptr.c @@ -20,8 +20,8 @@ int Person_compare(const Person* p, const Person* q) { }
using_csptr(pe, Person, Person_compare, Person_del);
-using_clist(pe, csptr_pe, csptr_pe_compare, csptr_pe_del);
-using_cvec(pe, csptr_pe, csptr_pe_compare, csptr_pe_del);
+using_clist(pe, csptr_pe, csptr_pe_compare, csptr_pe_del, csptr_pe_clone);
+using_cvec(pe, csptr_pe, csptr_pe_compare, csptr_pe_del, csptr_pe_clone);
int main() {
clist_pe queue = clist_pe_init();
|
