clang and gcc complained about this, while VS2015 accepted it. It turns out this is the much better way to do it!