MCPcopy Create free account
hub / github.com/Naios/function2 / ref_obj

Class ref_obj

test/regressions.cpp:232–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231namespace issue_35 {
232class ref_obj {
233public:
234 ref_obj() = default;
235 ref_obj(ref_obj const&) = delete;
236 ref_obj(ref_obj&&) = default;
237 ref_obj& operator=(ref_obj&&) = default;
238 ref_obj& operator=(ref_obj const&) = delete;
239
240 int data() const {
241 return data_;
242 }
243
244private:
245 int data_{8373827};
246};
247
248ref_obj& ref_obj_getter() {
249 static ref_obj some;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected