Searched defs:ClassWithOwner (Results 1 – 1 of 1) sorted by relevance
234 struct ClassWithOwner { // Does not define destructor, necessary with owner struct235 ClassWithOwner() : owner_var(nullptr) {} // Ok in ClassWithOwner() argument237 ClassWithOwner(ArbitraryClass &other) : owner_var(&other) {} in ClassWithOwner() function240 ClassWithOwner(gsl::owner<ArbitraryClass *> other) : owner_var(other) {} // Ok in ClassWithOwner() argument242 ClassWithOwner(gsl::owner<ArbitraryClass *> data, int /* unused */) { // Ok in ClassWithOwner() function246 ClassWithOwner(ArbitraryClass *bad_data, int /* unused */, int /* unused */) { in ClassWithOwner() argument251 ClassWithOwner(ClassWithOwner &&other) : owner_var{other.owner_var} {} // Ok in ClassWithOwner() function253 ClassWithOwner &operator=(ClassWithOwner &&other) { in operator =() argument263 … warning: member variable of type 'gsl::owner<>' requires the class 'ClassWithOwner' to implement … argument