On Sunday, 7 January 2018 at 03:41:18 UTC, SimonN wrote:
Another way would be to have the RAII wrapper in a with statement, but it produces extra indentation, which you might not like:with (MyStruct(100, 200)) { // code that uses the new clip rectangle } -- Simon
This works good enough. Thanks.