How to make vector of GraphicsPath?

36 Views Asked by At

I want to make a std::vector of Gdiplus::GraphicsPath like so:

std::vector<Gdiplus::GraphicsPath> test;

but when I try to add an item e.g.

test.emplace_back(rndRectPathData.Points, rndRectPathData.Types, rndRectPathData.Count);

I get errors:

Error   C2672   'std::construct_at': no matching overloaded function found  

Error   C2783   '_Ty *std::construct_at(_Ty *const ,_Types &&...) noexcept(<expr>)': could not deduce template argument for '<unnamed-symbol>'

Error   C2248   'Gdiplus::GraphicsPath::GraphicsPath': cannot access protected member declared in class 'Gdiplus::GraphicsPath'

Is it not possible? Why?

0

There are 0 best solutions below