WAR MSVC9's problems with an enable_if inside scan's implementation.