Searched refs:TemplateValue (Results 1 – 1 of 1) sorted by relevance
346 struct TemplateValue { struct347 TemplateValue() = default;348 TemplateValue(T t) : val{t} {} in TemplateValue() argument369 TemplateValue<gsl::owner<int *>> Owner0; // Ok, T should be owner, but is int* in test_templates() argument371 TemplateValue<gsl::owner<int *>> Owner1(new int(42)); // Ok, T should be owner, but is int* in test_templates()378 …TemplateValue<int *> NonOwner1(new int(42)); // Bad, T is int *, hence dynamic memory to non-… in test_templates()