VC2080: format is deprecated; use type

warning All diagnostics

format is the old name for type.

How to fix

Rename it to type (or remove it when type is there too).