Fix compiling error of deprecated template.
Merge pull request #304 from yangyanli/fix_deprecated_vs2012

Fix compiling error of deprecated template.