Searched refs:ArbitraryClass (Results 1 – 1 of 1) sorted by relevance
237 struct ArbitraryClass {}; struct241 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner()244 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner()246 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner()250 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner()264 gsl::owner<ArbitraryClass *> buggy_but_returns_owner() { return owner_var; } in buggy_but_returns_owner()266 gsl::owner<ArbitraryClass *> owner_var;283 ArbitraryClass A; in test_class_with_owner()286 ClassWithOwner C3{gsl::owner<ArbitraryClass *>(new ArbitraryClass)}; // Ok in test_class_with_owner()298 gsl::owner<ArbitraryClass *> Owner3 = C1.buggy_but_returns_owner(); // Ok, still an owner in test_class_with_owner()