issue #2404:Add more deprecated function and Modify template vs11 solution