Made template argument explicit to workaround compiler error on MSVC.