Searched refs:Owner1 (Results 1 – 2 of 2) sorted by relevance
284 …const auto Owner1 = C3.buggy_but_returns_owner(); // Ok, deduces Owner1 to owner<ArbitraryClass *>… in test_class_with_owner() local371 TemplateValue<gsl::owner<int *>> Owner1(new int(42)); // Ok, T should be owner, but is int* in test_templates() local372 Owner1.setVal(&stack_int); // Bad since non-owner assignment in test_templates()373 Owner1.setVal(stack_ptr1); // Bad since non-owner assignment in test_templates()376 int *stack_ptr2 = Owner1.getVal(); // Bad, initializing non-owner with owner in test_templates()
165 gsl::owner<int*> Owner1 = new int(42);168 Owner2 = Owner1; // Conceptual Leak of initial resource of Owner2!169 Owner1 = nullptr;