Add a SFINAE friendly iterator_traits and use that instead.
Attach a file by drag & drop or click to upload