I hope this is the right place to ask questions about DirectXTK which aren't really about graphics, if not please let me know a better place.
Can anyone tell me why I cannot do this:
DirectX::SimpleMath::Rectangle rectangle = {...};
RECT rect = rectangle;
or
RECT rect = static_cast<RECT>(rectangle);
or
const RECT rect(m_textureRect);
despite Rectangle having the following operator RECT:
operator RECT() { RECT rct; rct.left = x; rct.top = y; rct.right = (x + width); rct.bottom = (y + height); return rct; }
VS2017 tells me:
error C2440: 'initializing': cannot convert from 'const DirectX::SimpleMath::Rectangle' to 'const RECT'
Thanks in advance